Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Checkboxes uneditable (https://forums.graalonline.com/forums/showthread.php?t=85692)

Pelikano 05-23-2009 10:14 AM

Checkboxes uneditable
 
Hi,

I'm trying to create Checkboxes, which can't be edited by the Player, but still are checked or unchecked.

Well, there are two variabled:

checked = boolean
active = boolean

When setting active to false, the Checkbox can't be editet no more, but it kind of overwrites the checked variable, making it false :S.

I know I could do something like this:

PHP Code:

//#CLIENTSIDE
function onTimeOut() {
  
BlaBla.checked true;
  
setTimer(.05);


But is there really no other way?

Crow 05-23-2009 12:02 PM

I'm pretty damn sure that control.active does not overwrite control.checked, since I've been using this myself. It may look different though (the checkbox), showing a false state visually.

Pelikano 05-23-2009 02:59 PM

Quote:

Originally Posted by Crow (Post 1493325)
I'm pretty damn sure that control.active does not overwrite control.checked, since I've been using this myself. It may look different though (the checkbox), showing a false state visually.

Yep it shows a false state for sure.

Pelikano 05-26-2009 11:38 AM

anyone?

Admins 05-26-2009 09:31 PM

By default the in-active checkbox is drawing itself unchecked. There are some alternatives:

- set the profile to non-modal. That makes it impossible for the user to click on it:
PHP Code:

useownprofile true;
profile.modal false

- use gui styles (style="toon.wba")

Pelikano 05-27-2009 11:42 AM

Quote:

Originally Posted by Stefan (Post 1494375)
By default the in-active checkbox is drawing itself unchecked. There are some alternatives:

- set the profile to non-modal. That makes it impossible for the user to click on it:
PHP Code:

useownprofile true;
profile.modal false

- use gui styles (style="toon.wba")

Thanks =D


All times are GMT +2. The time now is 09:18 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.