• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

capping values for sliders?

Started by TheJamsh, September 13, 2009, 06:33:35 AM

Previous topic - Next topic

TheJamsh

I need to limit the values for a slider for a new gamemode from 1-15 (number of rounds).

How can i limit the slider? Its related to a variable (ivar61), but i don't know where i can set its limits. SetIntergerRange doesnt work.


BZII Expansion Pack Development Leader. Coming Soon.

TheJamsh

Also, WHY isn't this value being capped if i enter something higher or lower?


      CreateControl("MaxRoundsEdit", "EDIT")
      {
         ColorGroup("BLACKBLUE");
         Geometry("LEFT", "TOP");
         Position(200, 0);
         Size(19, 9);
         BorderSize(3);
         BevelSize(3);
         JustifyText("RIGHT");
         Font("TINY");
         Style("ROLLOVER", "OUTLINE");
         Cursor("Highlight");
         UseVar("network.session.ivar61");
         SetIntegerRange("network.session.ivar61", 1, 15);
      }


BZII Expansion Pack Development Leader. Coming Soon.

General BlackDragon




*****General BlackDragon*****

TheJamsh



BZII Expansion Pack Development Leader. Coming Soon.

General BlackDragon


- Feature add. In MP map .inf files, for all ivars except for #4 and 6
(bitfields), and 63 (launch flag), added:

[NetVars]
ivar0Min .. ivar62Min = 0
ivar0Max .. ivar62Max = 9999999

   Note: you must specify both the min & max entries for it to be
used.  Trying to set ranges from .cfg files isn't going to work
because I override things in code. #9, 25 (strat only), 26, and 27 may
still be overridden by code. [NM]



*****General BlackDragon*****

TheJamsh



BZII Expansion Pack Development Leader. Coming Soon.