PolishCivil Posted May 30, 2014 Share Posted May 30, 2014 (edited) Im asking you guys cuz idk if someone actually need it.INFO:So basically you can make your gui in java fx which looks cool (alot better than awt imo).But at start there might be problem with syncing your gui with script/states because for example if you want to use fxml loader (the .fxml files) with controller class, each time you load your gui with fxloader it makes your controler unique (new instance) so if you for example want to make 1 controler for whole gui with all childs you wont succeed with JavaFX API (i think, I've been searching on google for solution - no results)So generally use of my api is : FXGUI - FXGUIContextBuilder: FXGUIContext: FXGUIController: This is your main controller, which you share between childs like: ^ this is main gui^and exact one for gui childs Now, if you want to open new child u simply: "Region preview" is just new frame title."regionview.fxml" is the fx design file for my region preview. So generally you can store FXGUIContext somewhere in your script, and after closing your main gui you can use it as settings holder like; fight(){ npc.getForName(script.context.choosedNpcName).interact("Attack"); } Edited May 30, 2014 by PolishCivil Link to comment Share on other sites More sharing options...
pitoluwa Posted May 30, 2014 Share Posted May 30, 2014 java wizard is java wizard 2 Link to comment Share on other sites More sharing options...
WhenPigsFly Posted May 30, 2014 Share Posted May 30, 2014 1 Link to comment Share on other sites More sharing options...
Swizzbeat Posted May 30, 2014 Share Posted May 30, 2014 I'd be interested in looking at it. Link to comment Share on other sites More sharing options...
Ziy Posted May 30, 2014 Share Posted May 30, 2014 Do you dynamically load the mini-map image in the region preview? Link to comment Share on other sites More sharing options...
PolishCivil Posted May 30, 2014 Author Share Posted May 30, 2014 Do you dynamically load the mini-map image in the region preview? ye, i just hooked pixel data. 1 Link to comment Share on other sites More sharing options...
Nitrousek Posted May 30, 2014 Share Posted May 30, 2014 ye, i just hooked pixel data. Damn, I love your new signature... Link to comment Share on other sites More sharing options...