Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2009, 10:14 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
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?
Reply With Quote
  #2  
Old 05-23-2009, 12:02 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
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.
Reply With Quote
  #3  
Old 05-23-2009, 02:59 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by Crow View Post
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.
Reply With Quote
  #4  
Old 05-26-2009, 11:38 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
anyone?
Reply With Quote
  #5  
Old 05-26-2009, 09:31 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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")
Reply With Quote
  #6  
Old 05-27-2009, 11:42 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by Stefan View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:48 PM.


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