|
| virtual void | DisplayLargeMessage (string largeText, string smallText, float duration, float delay) |
| virtual void | DisplaySmallMessage (string text, Color color, bool blinking, bool playNotificationSound) |
| virtual void | DisplaySmallMessage (string text, Color color, bool blinking, bool playNotificationSound, float fontScale=1f) |
| virtual void | DisplaySmallMessage (MessageWidget.Message message, bool playNotificationSound) |
| | 模组如果需要自定义类型的DisplaySmallMessage,比如彩虹渐变色的Message,可以自己建立对应的Message类型,并调用这个方法
|
| virtual bool | IsGameMenuDialogVisible () |
| virtual void | Update (float dt) |
| override void | Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap) |
| override void | Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap) |
| override void | OnEntityAdded () |
| override void | OnEntityRemoved () |
| override void | Dispose () |
| virtual void | UpdateSidePanelsAnimation () |
| virtual void | UpdateModalPanelAnimation () |
| virtual void | EndModalPanelAnimation () |
| virtual void | UpdateWidgets () |
| virtual void | HandleInput () |
| virtual bool | IsClothingVisible () |
| virtual bool | IsInventoryVisible () |
| virtual bool | IsActiveSlotEditable () |
| virtual void | Draw (Camera camera, int drawOrder) |
| virtual IEnumerable< Entity > | GetOwnedEntities () |
| virtual void | InheritFromComponent (Component baseComponent) |
| virtual void | Initialize (Entity entity, ValuesDictionary valuesDictionary) |
|
| GameWidget | GameWidget [get, set] |
| ContainerWidget | ControlsContainerWidget [get, set] |
| TouchInputWidget | ViewWidget [get, set] |
| TouchInputWidget | MoveWidget [get, set] |
| MoveRoseWidget | MoveRoseWidget [get, set] |
| TouchInputWidget | LookWidget [get, set] |
| ShortInventoryWidget | ShortInventoryWidget [get, set] |
| ValueBarWidget | HealthBarWidget [get, set] |
| ValueBarWidget | FoodBarWidget [get, set] |
| ValueBarWidget | TemperatureBarWidget [get, set] |
| LabelWidget | LevelLabelWidget [get, set] |
| virtual bool | ShowTouchWidget [get] |
| Widget | ModalPanelWidget [get, set] |
| UpdateOrder | UpdateOrder [get] |
| int[] | DrawOrders [get] |
| ValuesDictionary | ValuesDictionary [get] |
| Entity | Entity [get] |
| Project | Project [get] |
| bool | IsAddedToProject [get] |
| float | FloatUpdateOrder [get] |
◆ DisplayLargeMessage()
| virtual void Game.ComponentGui.DisplayLargeMessage |
( |
string | largeText, |
|
|
string | smallText, |
|
|
float | duration, |
|
|
float | delay ) |
|
virtual |
◆ DisplaySmallMessage() [1/3]
| virtual void Game.ComponentGui.DisplaySmallMessage |
( |
MessageWidget.Message | message, |
|
|
bool | playNotificationSound ) |
|
virtual |
模组如果需要自定义类型的DisplaySmallMessage,比如彩虹渐变色的Message,可以自己建立对应的Message类型,并调用这个方法
- 参数
-
| message | |
| playNotificationSound | |
在文件 ComponentGui.cs 第 205 行定义.
◆ DisplaySmallMessage() [2/3]
| virtual void Game.ComponentGui.DisplaySmallMessage |
( |
string | text, |
|
|
Color | color, |
|
|
bool | blinking, |
|
|
bool | playNotificationSound ) |
|
virtual |
◆ DisplaySmallMessage() [3/3]
| virtual void Game.ComponentGui.DisplaySmallMessage |
( |
string | text, |
|
|
Color | color, |
|
|
bool | blinking, |
|
|
bool | playNotificationSound, |
|
|
float | fontScale = 1f ) |
|
virtual |
◆ Dispose()
| override void Game.ComponentGui.Dispose |
( |
| ) |
|
|
virtual |
◆ Draw()
| virtual void Game.ComponentGui.Draw |
( |
Camera | camera, |
|
|
int | drawOrder ) |
|
virtual |
◆ EndModalPanelAnimation()
| virtual void Game.ComponentGui.EndModalPanelAnimation |
( |
| ) |
|
|
virtual |
◆ HandleInput()
| virtual void Game.ComponentGui.HandleInput |
( |
| ) |
|
|
virtual |
◆ IsActiveSlotEditable()
| virtual bool Game.ComponentGui.IsActiveSlotEditable |
( |
| ) |
|
|
virtual |
◆ IsClothingVisible()
| virtual bool Game.ComponentGui.IsClothingVisible |
( |
| ) |
|
|
virtual |
◆ IsGameMenuDialogVisible()
| virtual bool Game.ComponentGui.IsGameMenuDialogVisible |
( |
| ) |
|
|
virtual |
◆ IsInventoryVisible()
| virtual bool Game.ComponentGui.IsInventoryVisible |
( |
| ) |
|
|
virtual |
◆ Load()
◆ OnEntityAdded()
| override void Game.ComponentGui.OnEntityAdded |
( |
| ) |
|
|
virtual |
◆ OnEntityRemoved()
| override void Game.ComponentGui.OnEntityRemoved |
( |
| ) |
|
|
virtual |
◆ Save()
◆ Update()
| virtual void Game.ComponentGui.Update |
( |
float | dt | ) |
|
|
virtual |
◆ UpdateModalPanelAnimation()
| virtual void Game.ComponentGui.UpdateModalPanelAnimation |
( |
| ) |
|
|
virtual |
◆ UpdateSidePanelsAnimation()
| virtual void Game.ComponentGui.UpdateSidePanelsAnimation |
( |
| ) |
|
|
virtual |
◆ UpdateWidgets()
| virtual void Game.ComponentGui.UpdateWidgets |
( |
| ) |
|
|
virtual |
◆ fName
| string Game.ComponentGui.fName = "ComponentGui" |
|
static |
◆ m_backButtonWidget
◆ m_cameraButtonWidget
◆ m_clothingButtonWidget
◆ m_componentInput
◆ m_componentPlayer
◆ m_creativeFlyButtonWidget
◆ m_crouchButtonWidget
◆ m_editItemButton
◆ m_fogButtonWidget
◆ m_gamepadHelpDialog
◆ m_gamepadHelpMessageShown
| bool Game.ComponentGui.m_gamepadHelpMessageShown |
◆ m_helpButtonWidget
◆ m_inventoryButtonWidget
◆ m_keyboardHelpDialog
◆ m_keyboardHelpMessageShown
| bool Game.ComponentGui.m_keyboardHelpMessageShown |
◆ m_largeMessageWidget
◆ m_lastMountableCreatureSearchTime
| double Game.ComponentGui.m_lastMountableCreatureSearchTime |
◆ m_leftControlsContainerWidget
◆ m_lightningButtonWidget
◆ m_lookContainerWidget
◆ m_lookPadContainerWidget
◆ m_lookRectangleContainerWidget
◆ m_lookRectangleWidget
◆ m_message
| Message Game.ComponentGui.m_message |
◆ m_messageWidget
◆ m_modalPanelAnimationData
◆ m_modalPanelContainerWidget
◆ m_moreButtonWidget
◆ m_moreContentsWidget
| Widget Game.ComponentGui.m_moreContentsWidget |
◆ m_mountButtonWidget
◆ m_moveButtonsContainerWidget
◆ m_moveContainerWidget
◆ m_movePadContainerWidget
◆ m_moveRectangleContainerWidget
◆ m_moveRectangleWidget
◆ m_photoButtonWidget
◆ m_precipitationButtonWidget
◆ m_rightControlsContainerWidget
◆ m_sidePanelsFactor
| float Game.ComponentGui.m_sidePanelsFactor |
◆ m_subsystemAudio
◆ m_subsystemBlockBehaviors
◆ m_subsystemGameInfo
◆ m_subsystemSky
◆ m_subsystemTerrain
◆ m_subsystemTimeOfDay
◆ m_subsystemWeather
◆ m_timeOfDayButtonWidget
◆ OpenClothingWidget
| Func<Widget> Game.ComponentGui.OpenClothingWidget |
|
static |
◆ ControlsContainerWidget
◆ DrawOrders
| int [] Game.ComponentGui.DrawOrders |
|
get |
◆ FoodBarWidget
◆ GameWidget
◆ HealthBarWidget
◆ LevelLabelWidget
◆ LookWidget
◆ ModalPanelWidget
| Widget Game.ComponentGui.ModalPanelWidget |
|
getset |
◆ MoveRoseWidget
| MoveRoseWidget Game.ComponentGui.MoveRoseWidget |
|
getset |
◆ MoveWidget
◆ ShortInventoryWidget
| ShortInventoryWidget Game.ComponentGui.ShortInventoryWidget |
|
getset |
◆ ShowTouchWidget
| virtual bool Game.ComponentGui.ShowTouchWidget |
|
get |
◆ TemperatureBarWidget
◆ UpdateOrder
◆ ViewWidget
该类的文档由以下文件生成:
- E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Component/ComponentGui.cs