PropertyTycoon
 
Loading...
Searching...
No Matches
UIManager Class Reference

Manages the UI elements and interactions in the game. More...

Inheritance diagram for UIManager:

Public Member Functions

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 ()
 

Public Attributes

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
 

Properties

GameObject BankInfoPanel [get]
 
GameObject FreeParkingInfoPanel [get]
 

Detailed Description

Manages the UI elements and interactions in the game.

Member Function Documentation

◆ AnimateDiceRoll()

IEnumerator UIManager.AnimateDiceRoll ( int diceRoll1,
int diceRoll2 )

Animates the dice roll and sets the final sprite to the dice roll values.

Parameters
diceRoll1The first dice roll result.
diceRoll2The 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
nameThe name of the active player.
spriteThe 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
titleDeedsThe title deeds the player/bank owns
infoPanelThe player/bank info panel to update

The documentation for this class was generated from the following file: