Manages the UI elements and interactions in the game.
More...
|
void | ShowRollDicePrompt () |
|
void | HideRollDicePrompt () |
|
void | ShowEndTurnPrompt () |
|
void | HideEndTurnPrompt () |
|
void | ShowForSalePrompt (bool buyButtonEnabled, bool auctionButtonEnabled, Property property) |
|
void | HideForSalePrompt () |
|
void | ShowAuctionPrompt (Property property) |
|
void | HideAuctionPrompt () |
|
void | UpdateAuctionPrompt (bool bidButtonEnabled, bool foldButtonEnabled, string bidderName, Sprite bidderSprite) |
|
void | DisableAuctionButtons () |
|
void | UpdateAuctionPrice (int newValue) |
|
void | UpdateBidButtonAmount (int auctionPrice, int bidAmount) |
|
void | ShowGoToJailPopup () |
|
void | HideGoToJailPopup () |
|
void | ShowInJailPrompt (bool postBailButtonEnabled, bool getOutOfJailFreeButtonEnabled, bool remainInJailButtonEnabled) |
|
void | HideInJailPrompt () |
|
void | ShowPayRentPopup (int rent, string ownedByName, Sprite ownedBySprite) |
|
void | HidePayRentPopup () |
|
void | ShowBankruptPopup () |
|
void | HideBankruptPopup () |
|
void | ShowMortgagePanel () |
|
void | HideMortgagePanel () |
|
void | ShowUnmortgagePanel () |
|
void | HideUnmortgagePanel () |
|
void | ShowSellPropertyPanel () |
|
void | HideSellPropertyPanel () |
|
void | EnableMortgageButton () |
|
void | DisableMortgageButton () |
|
void | EnableUnmortgageButton () |
|
void | DisableUnmortgageButton () |
|
void | EnableSellPropertyButton () |
|
void | DisableSellPropertyButton () |
|
void | ShowBotDecisionDialog () |
|
void | HideBotDecisionDialog () |
|
void | ShowRaiseFundsDialog () |
|
void | HideRaiseFundsDialog () |
|
void | ShowWinnerPanel (Player player) |
|
GameObject | GetInfoPanel () |
| Returns the next available UI panel and makes it visible.
|
|
void | SetActivePlayerInfo (string name, Sprite sprite) |
| Sets the active player's information in the UI.
|
|
IEnumerator | AnimateDiceRoll (int diceRoll1, int diceRoll2) |
| Animates the dice roll and sets the final sprite to the dice roll values.
|
|
void | UpdateTitleDeedUI (Property[] titleDeeds, GameObject infoPanel) |
| Loops through the list of title deeds and changes the opacity of the UI depending on if the player/bank owns the title deed.
|
|
void | OnMainMenuClick () |
|
|
GameObject[] | playerInfoPanels |
|
Button | rollDiceButton |
|
Button | endTurnButton |
|
Button | buyButton |
|
Button | auctionButton |
|
Button | bidButton |
|
Button | foldButton |
|
Button | postBailButton |
|
Button | getOutOfJailFreeButton |
|
Button | remainInJailButton |
|
Button | mortgageButton |
|
Button | unmortgageButton |
|
Button | endMortgageButton |
|
Button | endUnmortgageButton |
|
Button | sellPropertyButton |
|
Button | endSellPropertyButton |
|
|
GameObject | BankInfoPanel [get] |
|
GameObject | FreeParkingInfoPanel [get] |
|
Manages the UI elements and interactions in the game.
◆ AnimateDiceRoll()
IEnumerator UIManager.AnimateDiceRoll |
( |
int | diceRoll1, |
|
|
int | diceRoll2 ) |
Animates the dice roll and sets the final sprite to the dice roll values.
- Parameters
-
diceRoll1 | The first dice roll result. |
diceRoll2 | The second dice roll result. |
◆ GetInfoPanel()
GameObject UIManager.GetInfoPanel |
( |
| ) |
|
Returns the next available UI panel and makes it visible.
- Returns
- The UI Panel component
◆ SetActivePlayerInfo()
void UIManager.SetActivePlayerInfo |
( |
string | name, |
|
|
Sprite | sprite ) |
Sets the active player's information in the UI.
- Parameters
-
name | The name of the active player. |
sprite | The sprite representing the player. |
◆ UpdateTitleDeedUI()
void UIManager.UpdateTitleDeedUI |
( |
Property[] | titleDeeds, |
|
|
GameObject | infoPanel ) |
Loops through the list of title deeds and changes the opacity of the UI depending on if the player/bank owns the title deed.
- Parameters
-
titleDeeds | The title deeds the player/bank owns |
infoPanel | The player/bank info panel to update |
The documentation for this class was generated from the following file:
- PropertyTycoon/Assets/Scripts/UIManager.cs