104,545pages on
this wiki
Add New Page
Add New Page Talk0
XML UI ← XML types < RelInset

Important Note: there is no known use of this property or examples of it actually being used in a working way.

RelInset is the 'scalar' value for Inset which alters the hit rectangle or 'hit rect' for user input.

Inheritance Edit

Inherited by: none, Inherits: none, Defined in: Inset

Elements Edit


Attributes Edit

  • left (float)
  • right (float)
  • top (float)
  • bottom (float)

Summary Edit

RelInset alters the active hit area for positional input devices using 'scalar' ratio based values. Hit rects are used for determining which screen element belongs to an input event by having an associated screen rectangle.

Example Edit

Note: this is an example for documentation completeness purposes. RelInset has no known working use at this time.

<Frame name="MyFrame">
   <RelInset left="0" right="-0.1" top="0" bottom="0"/>
        <Size x="100" y="100" />
          <AbsInset left="0" right="-100" top="0" bottom="0"/>
        <Color a="1" r="1" g="1" b="1" />

This example will show a frame with several textures, with altered 'hit rect' insets.

Also on Fandom

Random Wiki