Space Engineers
|
Classes | |
class | GridItemUserData |
Public Types | |
enum | GroupModes { GroupModes.Default = 0, GroupModes.HideEmpty = 1, GroupModes.HideBlockGroups = 2, GroupModes.HideAll = 3 } |
Public Member Functions | |
MyGuiScreenToolbarConfigBase (int scrollOffset=0, MyCubeBlock owner=null) | |
override void | HandleInput (bool receivedFocusInThisUpdate) |
override void | HandleUnhandledInput (bool receivedFocusInThisUpdate) |
override bool | CloseScreen () |
override string | GetFriendlyName () |
For displaying in the list in the debug screen. More... | |
override void | RecreateControls (bool contructor) |
void | RecreateBlockCategories (Dictionary< string, MyGuiBlockCategoryDefinition > loadedCategories, SortedDictionary< String, MyGuiBlockCategoryDefinition > categories) |
virtual bool | AllowToolbarKeys () |
override bool | Update (bool hasFocus) |
Public Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
delegate void | ScreenHandler (MyGuiScreenBase source) |
MyObjectBuilder_GuiScreen | GetObjectBuilder () |
void | Init (MyObjectBuilder_GuiScreen objectBuilder) |
virtual void | LoadContent () |
virtual void | LoadData () |
virtual void | UnloadContent () |
virtual void | UnloadData () |
virtual void | RunLoadingAction () |
bool | IsMouseOverAnyControl () |
MyGuiControlBase | GetMouseOverControl () |
virtual void | GetControlsUnderMouseCursor (Vector2 position, List< MyGuiControlBase > controls, bool visibleOnly) |
MyGuiControlBase | GetNextFocusControl (MyGuiControlBase currentFocusControl, bool forwardMovement) |
virtual void | InputLost () |
virtual bool | HandleInputAfterSimulation () |
virtual bool | HideScreen () |
virtual bool | UnhideScreen () |
virtual void | CloseScreenNow () |
virtual bool | Draw () |
void | HideTooltips () |
Vector2 | GetPositionAbsolute () |
Vector2 | GetPositionAbsoluteCenter () |
Vector2 | GetPositionAbsoluteTopLeft () |
bool | GetDrawMouseCursor () |
bool | IsTopMostScreen () |
bool | IsAlwaysFirst () |
bool | IsTopScreen () |
bool | IsFirstForUnload () |
bool | GetDrawScreenEvenWithoutFocus () |
Vector2 | GetPosition () |
Vector2 | GetSize () |
bool | CanShareInput () |
bool | CanCloseInCloseAllScreenCalls () |
virtual int | GetTransitionOpeningTime () |
virtual int | GetTransitionClosingTime () |
virtual void | OnRemoved () |
Called when [show]. More... | |
Static Public Member Functions | |
static void | Reset () |
static void | RequestItemParameters (MyToolbarItem item, Action< bool > callback) |
static void | DropGridItemToToolbar (MyToolbarItem item, int slot) |
static void | ReinitializeBlockScrollbarPosition () |
Static Public Attributes | |
static MyGuiScreenToolbarConfigBase | Static |
static GroupModes | GroupMode = GroupModes.Default |
Protected Member Functions | |
override void | OnClosed () |
Called when [show]. More... | |
void | SelectCategories () |
void | SortCategoriesToDisplayList () |
virtual void | UpdateGridBlocksBySearchCondition (IMySearchCondition searchCondition) |
virtual void | AddToolsAndAnimations (IMySearchCondition searchCondition) |
virtual void | AddDefinitionAtPosition (MyGuiControlGrid grid, MyDefinitionBase definition, Vector2I position, bool enabled=true, string subicon=null) |
void | UpdateGridControl () |
Updates Grid control with current category settings. More... | |
Protected Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
MyGuiScreenBase (Vector2?position=null, Vector4?backgroundColor=null, Vector2?size=null, bool isTopMostScreen=false, string backgroundTexture=null, float backgroundTransition=0.0f, float guiTransition=0.0f) | |
bool | HandleKeyboardActiveIndex (bool forwardMovement) |
bool | IsMouseOver () |
MyGuiControlLabel | AddCaption (MyStringId textEnum, Vector4?captionTextColor=null, Vector2?captionOffset=null, float captionScale=MyGuiConstants.DEFAULT_TEXT_SCALE) |
MyGuiControlLabel | AddCaption (String text, Vector4?captionTextColor=null, Vector2?captionOffset=null, float captionScale=MyGuiConstants.DEFAULT_TEXT_SCALE) |
virtual void | Canceling () |
Called when user presses ESC or clicks on CANCEL - hook to this method so you can do gui-screen-specific event More... | |
Color | ApplyTransitionAlpha (Vector4 color, float transition) |
virtual void | OnShow () |
Called when [show]. More... | |
virtual void | OnHide () |
Called when [show]. More... | |
void | MakeXAndYEqual (ref Vector2 val) |
Computes ratio of width and height in GUI coordinates to make X and Y of equal value represent same distance on screen as well. Then multiplies Y using this ratio. More... | |
Vector2 | MakeXAndYEqual (Vector2 val) |
void | SetDefaultCloseButtonOffset () |
Static Protected Member Functions | |
static void | AddDefinition (MyGuiControlGrid grid, MyObjectBuilder_ToolbarItem data, MyDefinitionBase definition) |
Static Protected Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
static string | MakeScreenFilepath (string name) |
Static Protected Attributes | |
static List< MyGuiBlockCategoryDefinition > | m_allSelectedCategories = new List<MyGuiBlockCategoryDefinition>() |
static float | m_savedVPosition = 0.0f |
static bool | m_ownerChanged = false |
static MyEntity | m_previousOwner = null |
Additional Inherited Members | |
Public Attributes inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
Action | OnLoadingAction |
readonly MyGuiControls | Elements |
Properties inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
Color | BackgroundFadeColor [get] |
bool | SkipTransition [get, set] |
bool | Cancelled [get] |
bool | DrawMouseCursor [get, set] |
bool | JoystickAsMouse [get, set] |
MyGuiScreenState | State [get, set] |
bool | IsLoaded [get, set] |
bool | EnabledBackgroundFade [get, protected set] |
Draw fade rectangle under top-most screen? More... | |
bool | CanBeHidden [get, protected set] |
Indicates whether screen can be hidden when another screen is on top of it (assuming that screen hides screens below it). More... | |
bool | CanHideOthers [get, protected set] |
Indicates whether screen can hide screens below it. This will not hide screens that cannot be hidden. More... | |
bool | CanHaveFocus [get, protected set] |
Without focus, this screen will not steal input. More... | |
virtual MyGuiControls | Controls [get] |
Vector4 | BackgroundColor [get, set] |
Vector2 | Size [get, set] |
bool | Visible [get] |
Vector2 | CloseButtonOffset [get, set] |
bool | CloseButtonEnabled [get, set] |
MyGuiControlBase | FocusedControl [get, set] |
string | DebugNamePath [get] |
string | Name [get] |
IMyGuiControlsOwner | Owner [get] |
Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsParent | |
MyGuiControls | Controls [get] |
Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsOwner | |
string | DebugNamePath [get] |
string | Name [get] |
IMyGuiControlsOwner | Owner [get] |
Events inherited from Sandbox.Graphics.GUI.MyGuiScreenBase | |
ScreenHandler | Closed |
VisibleChangedDelegate | VisibleChanged |
Action< MyGuiScreenBase > | DataLoading |
Action< MyGuiScreenBase > | DataUnloading |
Definition at line 177 of file MyGuiScreenToolbarConfigBase.cs.
Enumerator | |
---|---|
Default | |
HideEmpty | |
HideBlockGroups | |
HideAll |
Definition at line 230 of file MyGuiScreenToolbarConfigBase.cs.
|
inline |
Definition at line 256 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinestaticprotected |
Definition at line 873 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotectedvirtual |
Definition at line 888 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotectedvirtual |
Definition at line 799 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Definition at line 770 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 350 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinestatic |
Definition at line 1728 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
For displaying in the list in the debug screen.
Implements Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 358 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 299 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 342 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotectedvirtual |
Called when [show].
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 286 of file MyGuiScreenToolbarConfigBase.cs.
|
inline |
Definition at line 605 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 366 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinestatic |
Definition at line 1747 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinestatic |
Definition at line 1713 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinestatic |
Definition at line 294 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotected |
Definition at line 563 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotected |
Definition at line 586 of file MyGuiScreenToolbarConfigBase.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.
Definition at line 1795 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotectedvirtual |
Definition at line 777 of file MyGuiScreenToolbarConfigBase.cs.
|
inlineprotected |
Updates Grid control with current category settings.
Definition at line 1613 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 207 of file MyGuiScreenToolbarConfigBase.cs.
|
static |
Definition at line 237 of file MyGuiScreenToolbarConfigBase.cs.
|
staticprotected |
Definition at line 218 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 187 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 183 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 214 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 203 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 226 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 193 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 189 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 211 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 184 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 186 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 213 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 194 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 229 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 228 of file MyGuiScreenToolbarConfigBase.cs.
|
staticprotected |
Definition at line 246 of file MyGuiScreenToolbarConfigBase.cs.
|
staticprotected |
Definition at line 247 of file MyGuiScreenToolbarConfigBase.cs.
|
staticprotected |
Definition at line 225 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 204 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 245 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 223 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 219 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 182 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 221 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 216 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 191 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 196 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 209 of file MyGuiScreenToolbarConfigBase.cs.
|
protected |
Definition at line 206 of file MyGuiScreenToolbarConfigBase.cs.
|
static |
Definition at line 180 of file MyGuiScreenToolbarConfigBase.cs.