ig.CONFIG.

UI

User Interface base configuration settings. IMPORTANT: Don't modify config directly! (see example)

Author:
  • Collin Hover - collinhover.com
Source:
// in order to add your own custom configuration to Impact++
// edit the file defining ig.CONFIG_USER, 'plusplus.config-user'
// ig.CONFIG_USER is never modified by Impact++ (it is strictly for your use)
// ig.CONFIG_USER is automatically merged over Impact++'s config

<static> CAN_FLIP_X :Boolean

Whether UI can flip horizontal.

Default Value:
  • true
Source:

<static> CAN_FLIP_Y :Boolean

Whether UI can flip horizontal.

Default Value:
  • false
Source:

<static> IGNORE_SYSTEM_SCALE :Boolean

Whether user interface elements should ignore system scale. IMPORTANT: when true, ui elements will not scale dynamically with view and instead will be fixed in size. This is usually ideal.

Default Value:
  • false
Source:

<static> MARGIN_AS_PCT_SMALLEST :Boolean

Whether to get margin percentages from smallest dimension in screen size.

Default Value:
  • true
Source:

<static> MARGIN_SCALELESS :Boolean

Whether margins should be calculated consistently at all scales. Ex: a button should be 15px away from the edge no matter the scale.

Default Value:
  • true
Source:

<static> POS_AS_PCT :Boolean

Whether UI should get position as a percentage of screen size.

Default Value:
  • true
Source:

<static> SCALE :Number

Scale that overrides system scale when ig.CONFIG.UI.IGNORE_SYSTEM_SCALE is true.

Default Value:
  • 1
Source:

<static> SCALE_MAX :Number

Maximum value of ig.UIElement#scale.

Source:

<static> SCALE_MIN :Number

Minimum value of ig.UIElement#scale.

Default Value:
  • 1
Source:

<static> SCALE_OF_SYSTEM_SCALE :Number

Scale of system scale.

Default Value:
  • 1
Source: