SkepticalFox 1,445 #513987 Posted January 10, 2022 @yinx2002 try to use gui.Scaleform.framework.entities.View n python. 6 hours ago, yinx2002 said: Is the above link use XFW ? These don't use xfw (but a little outdated): PY - http://pastebin.com/VNPUyafE AS - http://pastebin.com/i4HhdQ0H 1 Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #513999 Posted January 11, 2022 (edited) @SkepticalFox The above two links cannot be open at my side. now I got a transparent imovable transparent view when I use AbstractView class in AS and AbstractWindowView in PY( it a coincident actually) You can find the text with link at top-left corner and the two button below ( the checkbox with tooltip also) , next step is adding image and make it movable @Budyx69 On 7/13/2015 at 2:46 AM, Budyx69 said: Nice :-) THX Work :-) How to add icon to garage like above? Edited January 11, 2022 by yinx2002 Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #514016 Posted January 11, 2022 9 hours ago, yinx2002 said: How to add icon to garage like above? there are different ways to do this, for example like this: [Embed(source="image.jpg")] public var imageClass:Bitmap; // later on you can instantiate it and use: addChild(new imageClass()); // creates and adds new image from https://stackoverflow.com/questions/23347816/embed-images-using-flashdevelop-as3 Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #514663 Posted January 21, 2022 can somebody show me the code to add a slider? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #514672 Posted January 21, 2022 3 hours ago, yinx2002 said: can somebody show me the code to add a slider? slider = addChild(App.utils.classFactory.getComponent("Slider",Slider, { minimum: 0, maximum: 100, snapInterval: 10, snapping: true, liveDragging: true, value: 50 })) as Slider; not tested 1 Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #514838 Posted January 24, 2022 @SkepticalFox Really work! Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #514903 Posted January 25, 2022 I found a class ProgressBar under net.wg.gui.components.controls which is the same location as the Slider or SoundButton in prev. example. But when I use progress = addChild(App.utils.classFactory.getComponent("ProgressBar ",ProgressBar , { minimum: 0, maximum: 100, value: 50 })) as ProgressBar ; I got error 2022-01-25 10:33:07.495: ERROR: object with "ProgressBar " linkage is not a component from library! 2022-01-25 10:33:07.496: ERROR: object with "ProgressBar " linkage can`t cast to [class ProgressBar] Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #514958 Posted January 26, 2022 @yinx2002 need to remove extra space from string Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #514971 Posted January 26, 2022 6 hours ago, SkepticalFox said: @yinx2002 need to remove extra space from string The space is typo , not exist previously .And after removing space, the error persist.@SkepticalFox Quote Share this post Link to post Short link Share on other sites
yepev 281 #515029 Posted January 26, 2022 9 часов назад, yinx2002 сказал: And after removing space, the error persist No, the error in your previous post is about space. If you removed the space and got errors, show it. Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #515050 Posted January 27, 2022 the error is the same 2022-01-27 10:10:34.666: ERROR: object with "ProgressBar" linkage is not a component from library! 2022-01-27 10:10:34.667: ERROR: object with "ProgressBar" linkage can`t cast to [class ProgressBar] my code is progress = addChild(App.utils.classFactory.getComponent("ProgressBar",ProgressBar , { minimum: 0, maximum: 100, value: 50 })) as ProgressBar; Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #515320 Posted January 30, 2022 I found if I create a window using AbstractWindowView or AbstractView , the window in client display normally in lobby but will overlap with the game UI even if I leave lobby by clicking different tab in the header. What event should I listen that to hide the window and show it again ? Quote Share this post Link to post Short link Share on other sites
yinx2002 0 #515931 Posted February 7, 2022 @SkepticalFox could you help me ? Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #529482 Posted November 10, 2022 Здравствуйте подскажите как например сделать кнопку в ангаре на социальную сеть телеграмм или на любую другую Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #529698 Posted November 16, 2022 @P.S.Enot на основе xvm должно быть просто, addchild кнопки в нужный слой. Без xvm нужно писать ещё код инжекта, вроде, где-то пример был. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #529703 Posted November 16, 2022 46 минут назад, SkepticalFox сказал: @P.S.Enot на основе xvm должно быть просто, addchild кнопки в нужный слой. Без xvm нужно писать ещё код инжекта, вроде, где-то пример был. по ходу я далек от этого Quote Share this post Link to post Short link Share on other sites
Xotabych 337 #529705 Posted November 16, 2022 @P.S.Enot никто вам готовое не разжует и в рот не положит, учитесь, спрашивайте - вам помогут... Когда-то Андрей накидал примеров был давно, смотрите тут, может поможет что-то. https://github.com/Mododejl/code-example Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #529709 Posted November 16, 2022 1 час назад, Xotabych сказал: @P.S.Enot никто вам готовое не разжует и в рот не положит, учитесь, спрашивайте - вам помогут... Когда-то Андрей накидал примеров был давно, смотрите тут, может поможет что-то. https://github.com/Mododejl/code-example Спасибо . Quote Share this post Link to post Short link Share on other sites