Markoz Posted April 18, 2015 Share Posted April 18, 2015 I need to make a faster hop method, but unfortunately I can't grab the widgets when im offline, how should I proceed? Quote Link to comment Share on other sites More sharing options...
Markoz Posted April 21, 2015 Author Share Posted April 21, 2015 Nobody? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 21, 2015 Share Posted April 21, 2015 (edited) Make an enum with the areas of the worlds Edited April 21, 2015 by Khaleesi Quote Link to comment Share on other sites More sharing options...
Joseph Posted April 21, 2015 Share Posted April 21, 2015 Make an enum with the areas of the worlds why an enum, why not an array of worlds. Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 21, 2015 Share Posted April 21, 2015 why an enum, why not an array of worlds. Well enum allows you to store extra things such as whether or not the world is pvp etc, idk, an enum would probably be more useful generally Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 21, 2015 Share Posted April 21, 2015 (edited) why an enum, why not an array of worlds. world number, type of world, area of world Why would you only use half the data if you can have it all? And Enums are more clear the arrays ... Edited April 21, 2015 by Khaleesi Quote Link to comment Share on other sites More sharing options...
Joseph Posted April 21, 2015 Share Posted April 21, 2015 world number, type of world, area of world Why would you only use half the data if you can have it all? And Enums are more clear the arrays ... Well enum allows you to store extra things such as whether or not the world is pvp etc, idk, an enum would probably be more useful generally you see now if you think of it like that then ofc i would use an enum. The op is asking for another way. I just thought he wanted like a list of worlds he can choose from. He creates and array of the worlds he would like to hop to. Now if he wants to get fancy then use the enum. 1 Quote Link to comment Share on other sites More sharing options...
Markoz Posted April 21, 2015 Author Share Posted April 21, 2015 But for example: How would I check if I am in the world selection screen or the login screen? Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 22, 2015 Share Posted April 22, 2015 But for example: How would I check if I am in the world selection screen or the login screen? If there are no interface ids then you'd probably need to use colourpicker to read a pixel value on the screen. For example the world selectionez screen has a black background. If you read a group of pixels around the bottom left corner for example, then if they are all black (0,0,0) exactly, then you can determine that you're on the world selection screen. Apa Quote Link to comment Share on other sites More sharing options...
Markoz Posted April 22, 2015 Author Share Posted April 22, 2015 If there are no interface ids then you'd probably need to use colourpicker to read a pixel value on the screen. For example the world selectionez screen has a black background. If you read a group of pixels around the bottom left corner for example, then if they are all black (0,0,0) exactly, then you can determine that you're on the world selection screen. Apa Good idea. Thank you Quote Link to comment Share on other sites More sharing options...