Fandom

Scratchpad

Parameter: rect

215,988pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Used with the bounds tag, it defines the position and size of the area of the parent tag that called bounds.

Return to Ruleset Modification & Creation

Syntax

<bounds rect="x,y,width,length" />

Parameters

  • x: defines the X value of the starting coordinate, which will be the top-left pixel of the area. A positive value will count inward from the left edge of the main window, and a negative value will count inward from the right.
  • y: defines the Y value of the starting coordinate, which is the same top-left pixel of the area. A positive value will count downward from the top of the page, and a negative value will count upwards from the bottom.
  • width: defines the horizontal width of the area. A positive value will count inward from the starting coordinate, and a negative value will count inward from the right edge of the main window.
  • length: defines the vertical length of the area. A positive value will count downward from the starting coordinate, and a negative value will count upward from the bottom edge of the main window.

Example

  <numbercontrol name="number1">
       <bounds rect="10,20,50,10" />
  </numbercontrol>

In this example, a number by the name of number1 is created. The area starts at the coordinate (10,20) and is 50 pixels wide by 10 pixels long. The player will be able to edit this number by clicking on the main window somewhere in the area.

Also on Fandom

Random wikia