IzeBerg 128 #280379 Posted July 2, 2015 Самопальное окно - это MovieClip. Он скорее всего находится в swf-файле курсора, чтобы не терялась совместимость с модами. В таком случае есть 2 пути: Cursor.swf->fla->AdobeFlashCS4->Cursor.swf или *.as inject в swf с помощью FlashDevelop.(способ темой выше от хлебнидизелечку) А пример можно? В идеале, мне нужно вызвать уже существующее окно. Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280384 Posted July 2, 2015 (edited) del Edited February 7, 2016 by ShadowHunterRUS Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280385 Posted July 2, 2015 I am following this thread with much interest, but I have one question: И не забываем подключить внешнюю библиотеку wg.swc, собранную в XFW How do I get a wg.swc? I know it is possible to "build" one, but: How? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280390 Posted July 2, 2015 (edited) I am following this thread with much interest, but I have one question: How do I get a wg.swc? I know it is possible to "build" one, but: How? https://bitbucket.org/XVM/xfw/src/053a421249a30a112fd706cfbbe9db170ea9d8fb/src/actionscript/?at=default Или возьмите здесь: wg.zip Edited July 4, 2015 by ShadowHunterRUS 1 Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280410 Posted July 2, 2015 https://bitbucket.org/XVM/xfw/src/053a421249a30a112fd706cfbbe9db170ea9d8fb/src/actionscript/?at=default Спасибо! 2 Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280499 Posted July 3, 2015 Another question: I managed to get Buttons and Checkboxes to work and sending results back to python. Fine to this point. But how can I add dropdown-menus and radiobuttons? This: this.ddownMenu = (this as UIComponent).addChild(App.utils.classFactory.getComponent("DropdownMenu", DropdownMenu, { x: 10, y: 100, width: 200 } )) as DropdownMenu; adds an empty dropdown-menu, but how do I add values? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280503 Posted July 3, 2015 (edited) Another question: I managed to get Buttons and Checkboxes to work and sending results back to python. Fine to this point. But how can I add dropdown-menus and radiobuttons? This adds an empty dropdown-menu, but how do I add values? import scaleform.clik.data.DataProvider; var data : Array = new Array(); data.push({"label":"Item 1"}); data.push({"label":"Item 2"}); var dataProv : DataProvider = new DataProvider(data); ddownMenu = addChild(App.utils.classFactory.getComponent("DropdownMenu", DropdownMenu, { x: 10, y: 340, width: 200, itemRenderer: "DropDownListItemRendererSound", dropdown: "DropdownMenu_ScrollingList", menuRowCount: dataProv.length, dataProvider: dataProv, selectedIndex: 0 })) as DropdownMenu; radiobuttons? private var radioButton_1 : RadioButton; private var radioButton_2 : RadioButton; radioButton_1 = addChild(App.utils.classFactory.getComponent("RadioButton", RadioButton, { x: 10, y: 10, label: "radioButton 1", groupName: "group1", selected: true })) as RadioButton; radioButton_2 = addChild(App.utils.classFactory.getComponent("RadioButton", RadioButton, { x: 10, y: 40, label: "radioButton 2", groupName: "group1" })) as RadioButton; Edited June 19, 2016 by ShadowHunterRUS 3 Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280560 Posted July 3, 2015 Thank you very much. This is exactly what I was looking for. Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280763 Posted July 5, 2015 Me again... Is there a way to add a scrollbar to Dropdownmenu? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280825 Posted July 6, 2015 Is there a way to add a scrollbar to Dropdownmenu? scrollBar:"ScrollBar" 2 Quote Share this post Link to post Short link Share on other sites
Budyx69 32 #280837 Posted July 6, 2015 Hi, how do clickable text fields ? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280843 Posted July 6, 2015 Hi, how do clickable text fields ? What? Quote Share this post Link to post Short link Share on other sites
Budyx69 32 #280848 Posted July 6, 2015 Sorry, a clickable link in html.text.field Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280850 Posted July 6, 2015 (edited) Sorry, a clickable link in html.text.field public var openURL:Function = null; public function handleLinkClick(url_link:TextEvent) : void { this.openURL(url_link.text); } this.textFieldTest.htmlText = "<a href=\"event:http://worldoftanks.com/\"><font color=\"#FFFFFF\"><u>TANKS</u></font></a>"; this.textFieldTest.addEventListener(TextEvent.LINK, this.handleLinkClick); В файле TestWindow.py добавим import BigWorldТакже к классу TestWindow добавим метод def openURL(self, url): BigWorld.wg_openWebBrowser(url) Edited July 6, 2015 by ShadowHunterRUS 1 Quote Share this post Link to post Short link Share on other sites
Budyx69 32 #280851 Posted July 6, 2015 o.k. http://www.koreanrandom.com/forum/topic/22719-как-сделать-ссылку-в-центре-уведомлений-кликаб/?p=265852 this.textFieldTest.htmlText = "<a vlink=\"#800080\" alink=\"#FF0000\" vcolor=\"#0000FF\" href=\"event:http://worldoftanks.com/\">TANKS</a>"; I had already tried but not working. but I try again Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280852 Posted July 6, 2015 (edited) del Edited September 15, 2016 by ShadowHunterRUS Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280909 Posted July 6, 2015 scrollBar:"ScrollBar" Большое спасибо за вашу помощь! The code above adds a scrollbar, indeed. (Tried "Scrollbar" before, didn't work....) I get working up- and down-buttons, but trying to move the small slider-button just moves to top of list. Forgot something? Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #280911 Posted July 6, 2015 (edited) The code above adds a scrollbar, indeed. (Tried "Scrollbar" before, didn't work....) I get working up- and down-buttons, but trying to move the small slider-button just moves to top of list. Forgot something?It's old bug feature in WoT Edited July 6, 2015 by ShadowHunterRUS Quote Share this post Link to post Short link Share on other sites
goofy67 55 #280912 Posted July 6, 2015 It's old bug feature in WoT So it's useless. Sad. Quote Share this post Link to post Short link Share on other sites
SV_Kirov 1 #280964 Posted July 7, 2015 public var openURL:Function = null; public function handleLinkClick(url_link:TextEvent) : void { this.openURL(url_link.text); } this.textFieldTest.htmlText = "<a href=\"event:http://worldoftanks.com/\"><font color=\"#FFFFFF\"><u>TANKS</u></font></a>"; this.textFieldTest.addEventListener(TextEvent.LINK, this.handleLinkClick); В файле TestWindow.py добавим import BigWorldТакже к классу TestWindow добавим метод def openURL(self, url): BigWorld.wg_openWebBrowser(url) shot_177.jpg А я себе голову ломаю как открыть ссылку. Спасибо. Quote Share this post Link to post Short link Share on other sites