![]() |
quick question
ok i seen this a lot and want to know what you guys think since im new to the scripting ect.
Ok the GUI Editor i seen it a lot pretty basic to use but cant you use particles and gani's to display on the gui ? but lack of quality graphics then i see Showimg() a lot too with more quality graphics ect basically displays as a img not a bitmap boarder so my question is what will give you less lag and give you good quality graphics to do is it better to use showimg or gui editor. i also while i put in a bitmap using current era bitmap as a example the text on the button is slightly off where u can only read half of it how would i fix this problem ? |
First, you should avoid the GUI editor like the plague. It is much easier and neater to hand-code GUIs.
Second, it depends what you want to use it for whether you should use GUIs or showimgs. And third, can you show the code you're using to set the bitmap? |
ya sorry here it is "umm the gui editor is really not that messy well i guess if you didn't make it
PHP Code:
|
PHP Code:
Keep in mind that visible is a boolean, so you should not set it to '0'; instead use 'false'. "new" should also not be capitalized. You would also do well to read this to avoid conflict later on. As far as the profile, chances are there are some text offset things set in the profile. You can see more about that here. |
Quote:
Quote:
Reason why you can do PHP Code:
|
And for those of you that have complained before that there is no sense in people using '0' for false and '1' for true (people like Ziro), in Discrete Mathematics '0' is applied to the false boolean value and '1' is applied to the true one. Hell, I think it's even in Finite Math for that matter, and any other logic-based mathematics.
|
Quote:
|
See that's that i thought chompy
i was taught 0 is close AND 1 is open instead of using windowname.destroy () visible=0 in the gui script and on buttonOnActicon { put visible=1 to close it they said it helps your computer run it better then destory |
Quote:
|
Quote:
Quote:
Of course booleans do not "exist" in Graal, but should be really be encouraging new scripters to use '0' and '1'? |
Quote:
|
Depending on the dynamic typing system in place, 1 and 0 (stored as integers) can easily mean different things than true and false (stored as bits).
(true + true) is only possible because it dynamically changes true to 1 when you try to perform a numerical operation (addition). It's generally good to stick to the construct utilized for a specific purpose because of the optimizations that come along with it; and even if there aren't currently optimizations, it'll suck if the optimizer gets updated and having to edit all your scripts around to get the new optimizations. |
Quote:
Quote:
|
?? i never said it was useless i just said i got taught by using 0 and 1 instead of true and false
|
Quote:
|
| All times are GMT +2. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.