|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
Accessor for HUD elements and controls. More...
Public Member Functions | |
| void | ActivateBaldicator (bool coming) |
| Activates or deactivates the baldicator UI element. | |
| void | CloseTooltip () |
| Closes any active tooltip. | |
| void | Darken (bool darken) |
| Darkens or undarkens the HUD. | |
| void | ForceUpdateColor () |
| Forces a color update on HUD elements. | |
| void | Hide (bool hidden) |
| Hides or shows the HUD. | |
| void | PlayHudAnimation (string stateName) |
| Plays a HUD animator state. | |
| void | PlayNotebookAnimation (string stateName) |
| Plays a notebook animator state. | |
| void | ReInit () |
| Reinitializes HUD internals. | |
| void | SetAllDarkenableSpritesColor (Color color) |
| Applies a color to all sprites that can be darkened. | |
| void | SetItemBackgroundColor (int slot, Color color) |
| Sets the background color for an item slot. | |
| void | SetItemSelect (int slot, string key) |
| Selects an item slot visually with the provided key. | |
| void | SetItemSpriteRaw (int slot, Sprite sprite) |
| Sets an item slot image directly. | |
| void | SetItemTitleRaw (string text) |
| Sets the raw item title text on the HUD. | |
| void | SetNotebookDisplay (bool visible) |
| Shows or hides the notebook display. | |
| void | SetReticleImage (Sprite sprite) |
| Replaces the reticle image with the provided sprite. | |
| void | SetReticleSprites (Sprite offSprite, Sprite onSprite) |
| Sets the reticle sprites for off and on states. | |
| void | SetStamina (float value) |
| Sets the displayed stamina value. | |
| void | SetTextBoxRaw (int index, string text) |
| Sets the text of a HUD text box by index. | |
| void | SetTooltip (string key) |
| Sets a tooltip key to display localized text. | |
| void | ShowCollectedSticker (Sprite stickerSprite) |
| Shows a collected sticker animation using the provided sprite. | |
| void | StopStickerAnimation () |
| Stops any running sticker animation. | |
| void | UpdateInventorySize (int size) |
| Updates the inventory UI size. | |
| void | UpdateItemIcon (int slot, Sprite sprite) |
| Updates the icon for an inventory slot. | |
| void | UpdateNotebookText (int index, string text, bool spin=false) |
| Updates notebook text at the given index. | |
| void | UpdateReticle (bool active) |
| Enables or disables the reticle. | |
Properties | |
| Animator? | Animator [get] |
| Animator controlling general HUD animations. | |
| BBPHudAnnouncements | Announcements = new BBPHudAnnouncements() [get] |
| Announcement-related HUD helpers. | |
| object? | BaldiTv [get] |
| Object representing Baldi TV functionality. | |
| Canvas? | Canvas [get] |
| Root Canvas for HUD rendering. | |
| CanvasScaler? | CanvasScaler [get] |
| Canvas scaler used for HUD layout. | |
| Color | DarkColor [get, set] |
| Color used for darkening UI elements. | |
| bool | Exists [get] |
| Whether the HUD is present in the current scene. | |
| object? | GaugeManager [get] |
| Gauge manager for stamina/other gauges. | |
| bool | Hidden [get] |
| Whether the HUD is currently hidden. | |
| object? | Inventory [get] |
| The inventory UI controller object. | |
| RawImage?[] | ItemBackgrounds [get] |
| Array of background images for item slots. | |
| Image?[] | ItemSprites [get] |
| Array of item slot sprite images. | |
| TMP_Text? | ItemTitle [get] |
| Text field showing the currently selected item's title. | |
| float | NeedleSpeed [get, set] |
| Speed at which the stamina needle animates. | |
| Animator? | NotebookAnimator [get] |
| Animator used specifically for notebook UI animations. | |
| GameObject?[] | NotebookDisplay [get] |
| GameObjects used to display notebook pages. | |
| object? | PointsAnimator [get] |
| Animator or controller used for points display animations. | |
| object? | Raw [get] |
| The underlying HUD raw object from the game. | |
| Image? | Reticle [get] |
| Reticle image used for aiming/interaction. | |
| Sprite? | ReticleOffSprite [get, set] |
| Sprite used when the reticle is off. | |
| Sprite? | ReticleOnSprite [get, set] |
| Sprite used when the reticle is on. | |
| Image?[] | SpritesToDarken [get] |
| Sprites that are darkened when appropriate. | |
| RectTransform? | StaminaNeedle [get] |
| RectTransform for the stamina needle UI element. | |
| TMP_Text?[] | TextBoxes [get] |
| Text boxes used by the HUD for various messages. | |
Accessor for HUD elements and controls.
| void BBPGlue.API.BBPHud.ActivateBaldicator | ( | bool | coming | ) |
Activates or deactivates the baldicator UI element.
| coming | True when the baldicator is appearing; false when hiding. |
| void BBPGlue.API.BBPHud.CloseTooltip | ( | ) |
Closes any active tooltip.
| void BBPGlue.API.BBPHud.Darken | ( | bool | darken | ) |
Darkens or undarkens the HUD.
| darken | True to darken; false to restore. |
| void BBPGlue.API.BBPHud.ForceUpdateColor | ( | ) |
Forces a color update on HUD elements.
| void BBPGlue.API.BBPHud.Hide | ( | bool | hidden | ) |
Hides or shows the HUD.
| hidden | True to hide; false to show. |
| void BBPGlue.API.BBPHud.PlayHudAnimation | ( | string | stateName | ) |
Plays a HUD animator state.
| stateName | Animator state name. |
| void BBPGlue.API.BBPHud.PlayNotebookAnimation | ( | string | stateName | ) |
Plays a notebook animator state.
| stateName | Animator state name. |
| void BBPGlue.API.BBPHud.ReInit | ( | ) |
Reinitializes HUD internals.
| void BBPGlue.API.BBPHud.SetAllDarkenableSpritesColor | ( | Color | color | ) |
Applies a color to all sprites that can be darkened.
| color | Color to set. |
| void BBPGlue.API.BBPHud.SetItemBackgroundColor | ( | int | slot, |
| Color | color ) |
Sets the background color for an item slot.
| slot | Slot index. |
| color | Color to apply. |
| void BBPGlue.API.BBPHud.SetItemSelect | ( | int | slot, |
| string | key ) |
Selects an item slot visually with the provided key.
| slot | Slot index. |
| key | Localization key for the selection. |
| void BBPGlue.API.BBPHud.SetItemSpriteRaw | ( | int | slot, |
| Sprite | sprite ) |
Sets an item slot image directly.
| slot | Slot index. |
| sprite | Sprite to assign. |
| void BBPGlue.API.BBPHud.SetItemTitleRaw | ( | string | text | ) |
Sets the raw item title text on the HUD.
| text | Text to set. |
| void BBPGlue.API.BBPHud.SetNotebookDisplay | ( | bool | visible | ) |
Shows or hides the notebook display.
| visible | True to show; false to hide. |
| void BBPGlue.API.BBPHud.SetReticleImage | ( | Sprite | sprite | ) |
Replaces the reticle image with the provided sprite.
| sprite | Sprite to set as the reticle. |
| void BBPGlue.API.BBPHud.SetReticleSprites | ( | Sprite | offSprite, |
| Sprite | onSprite ) |
Sets the reticle sprites for off and on states.
| offSprite | Sprite used when reticle is off. |
| onSprite | Sprite used when reticle is on. |
| void BBPGlue.API.BBPHud.SetStamina | ( | float | value | ) |
Sets the displayed stamina value.
| value | Stamina value to display. |
| void BBPGlue.API.BBPHud.SetTextBoxRaw | ( | int | index, |
| string | text ) |
Sets the text of a HUD text box by index.
| index | Index of the text box. |
| text | Text to set. |
| void BBPGlue.API.BBPHud.SetTooltip | ( | string | key | ) |
Sets a tooltip key to display localized text.
| key | Tooltip localization key. |
| void BBPGlue.API.BBPHud.ShowCollectedSticker | ( | Sprite | stickerSprite | ) |
Shows a collected sticker animation using the provided sprite.
| stickerSprite | Sprite to display as a sticker. |
| void BBPGlue.API.BBPHud.StopStickerAnimation | ( | ) |
Stops any running sticker animation.
| void BBPGlue.API.BBPHud.UpdateInventorySize | ( | int | size | ) |
Updates the inventory UI size.
| size | New inventory size. |
| void BBPGlue.API.BBPHud.UpdateItemIcon | ( | int | slot, |
| Sprite | sprite ) |
Updates the icon for an inventory slot.
| slot | Slot index. |
| sprite | Icon sprite to set. |
| void BBPGlue.API.BBPHud.UpdateNotebookText | ( | int | index, |
| string | text, | ||
| bool | spin = false ) |
Updates notebook text at the given index.
| index | Notebook line index. |
| text | Text to set. |
| spin | Whether to apply a spinning animation. |
| void BBPGlue.API.BBPHud.UpdateReticle | ( | bool | active | ) |
Enables or disables the reticle.
| active | True to enable; false to disable. |
|
get |
Animator controlling general HUD animations.
|
get |
Announcement-related HUD helpers.
|
get |
Object representing Baldi TV functionality.
|
get |
Root Canvas for HUD rendering.
|
get |
Canvas scaler used for HUD layout.
|
getset |
Color used for darkening UI elements.
|
get |
Whether the HUD is present in the current scene.
|
get |
Gauge manager for stamina/other gauges.
|
get |
Whether the HUD is currently hidden.
|
get |
The inventory UI controller object.
|
get |
Array of background images for item slots.
|
get |
Array of item slot sprite images.
|
get |
Text field showing the currently selected item's title.
|
getset |
Speed at which the stamina needle animates.
|
get |
Animator used specifically for notebook UI animations.
|
get |
GameObjects used to display notebook pages.
|
get |
Animator or controller used for points display animations.
|
get |
The underlying HUD raw object from the game.
|
get |
Reticle image used for aiming/interaction.
|
getset |
Sprite used when the reticle is off.
|
getset |
Sprite used when the reticle is on.
|
get |
Sprites that are darkened when appropriate.
|
get |
RectTransform for the stamina needle UI element.
|
get |
Text boxes used by the HUD for various messages.