Candide.CandideUI.TownOverview.TownOverviewControl
Type JSONpublic class in Candide.CandideUI.TownOverview
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI.TownOverview - Base type
Candide.CandideUI.Containers.CandideVerticalStackPanel - Hash
28EB98990C1391F7581FB0AC10AB0FA207326A3B9192AB4AA29E2A7DF468ADE2
Relationships
Base type
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
DraggedCitizenId# | public | public System.Nullable<System.Guid> DraggedCitizenId |
LockedHoveredCitizen# | public | public System.Nullable<System.Guid> LockedHoveredCitizen |
SlotHoveredCitizenId# | public | public System.Nullable<System.Guid> SlotHoveredCitizenId |
_citizenDetailsPanel# | private | private Candide.CandideUI.Containers.CandideVerticalStackPanel _citizenDetailsPanel |
_citizenPanel# | private | private Candide.CandideUI.Containers.CandideVerticalStackPanel _citizenPanel |
_displayData# | private | private Candide.CandideUI.TownOverview.DisplayData.TownOverviewDisplayData _displayData |
_draggableFocusable# | private | private Candide.CandideUI.UserControls.DraggableMapFocusable _draggableFocusable |
_grid# | private | private Candide.CandideUI.Containers.CandideGrid _grid |
_hoveredCitizen# | private | private System.Nullable<System.Guid> _hoveredCitizen |
_map# | private | private Candide.CandideUI.TownOverview.Components.TownOverviewMap _map |
_modal# | private | private Candide.CandideUI.Windows.CandideModalWindow _modal |
_renameBtn# | private | private Candide.CandideUI.Components.Buttons.CandideIconButton _renameBtn |
_statsCitizenSlots# | private | private Candide.CandideUI.Components.CandideIconLabel _statsCitizenSlots |
_statsTownDefence# | private | private Candide.CandideUI.Components.CandideIconLabel _statsTownDefence |
_townDisplay# | private | private Candide.CandideUI.Components.CandideIconLabel _townDisplay |
Properties
| Name | Visibility | Signature |
|---|---|---|
HoveredCitizen# | public | public System.Nullable<System.Guid> HoveredCitizen |
Town# | public | public Candide.CandideUI.TownOverview.DisplayData.TownOverviewDisplayData Town |
Methods
OnCitizenPickedUp
#
private System.Void OnCitizenPickedUp(System.Object sender, Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent citizen)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
CAC80968507A27D7704BB61ABA68C9A6F9CFDD8AD4F6FE11D2DF92C212CD0100 - Body hash
135BF5D7EB4FD7906D5BA3F47F6A649639610B256989E92EA848D5336CE576CA - IL size19
Referenced calls
Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.CandideUI.UserControls.DraggableMapFocusable::SetMapFocus()
OnClick_RenameTown
#
private System.Void OnClick_RenameTown()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
C6352A9084077238736456D3336BDDD50953A70A11165E02A6EC8A9F6888CFCE - Body hash
40FB885FC82291DE0A68B3A954E2DFCB366629B322028085C7D5A1760DFDDC08 - IL size85
Referenced calls
TownOverviewControl.<>c__DisplayClass20_0::.ctor()Candide.CandideUI.CandideUiElement::get_Desktop()Candide.CandideUI.TownOverview.TownOverviewControl::get_Town()TownOverviewControl.<>c__DisplayClass20_0::<OnClick_RenameTown>b__0(Candide.CandideUI.Windows.CandideModalWindow, Candide.CandideUI.Containers.CandideVerticalStackPanel)System.Func<Candide.CandideUI.Windows.CandideModalWindow, Candide.CandideUI.Containers.CandideVerticalStackPanel, System.ValueTuple<System.Action, System.Action, Candide.CandideUI.CandideUiElement>>::.ctor(System.Object, System.IntPtr)Candide.CandideUI.Windows.CandideModalWindow::ShowCustomModal(Candide.CandideUI.CandideDesktop, System.Func<Candide.CandideUI.Windows.CandideModalWindow, Candide.CandideUI.Containers.CandideVerticalStackPanel, System.ValueTuple<System.Action, System.Action, Candide.CandideUI.CandideUiElement>>)
OnDismount
#
protected System.Void OnDismount()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
E243BA37761F1DBA3903FB851C8E8F77CED3CC93A1BB3CF953495E6557A9D5AC - Body hash
8D1A3A8977AFF1409659C10F13F77E57BDDF2EF9C623EE9F79ABCB22F599A5C4 - IL size24
OnHoveredCitizenChanged
#
private System.Void OnHoveredCitizenChanged()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
41250695A66D1CF8291454739BF11057A03BE60B15CED838060EA11669591EDC - Body hash
4F4B2C0D86C866C7D9C512CB6A7E679CBD4EDD2C115C5CBF9C31D332A52C48DE - IL size147
Referenced calls
Candide.CandideUI.TownOverview.TownOverviewControl::get_HoveredCitizen()System.Nullable<System.Guid>::get_HasValue()Candide.CandideUI.Containers.CandideGrid::ClearChildren()System.Nullable<System.Guid>::get_Value()System.Collections.Generic.Dictionary<System.Guid, CandideServer.MessageModels.Towns.CitizenTownOverviewData>::TryGetValue(!0, !1&)Candide.CandideUI.Tooltip.CandideTooltipHelper::BuildCitizenTooltipContent(CandideServer.MessageModels.Towns.CitizenTownOverviewData)System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>::GetEnumerator()System.Collections.Generic.IEnumerator<Candide.CandideUI.CandideUiElement>::get_Current()Candide.CandideUI.CandideUiContainerMultipleItems::AddChild(Candide.CandideUI.CandideUiElement, System.Boolean)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()
OnTownChanged
#
private System.Void OnTownChanged()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
DBF2C1F4312550DF64E4B02EAD6C23B9B67AF6C242959ECB0AC8DDEB05877D58 - Body hash
81729320ED8C74C08BC72C6E5F7376D84CFFE0D261A0AEBD1122638023F60670 - IL size8
OnTownsChanged
#
public System.Void OnTownsChanged(Candide.CandideUI.TownOverview.DisplayData.TownOverviewDisplayData displayData)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
7ABABC31247EAEE7CDBA05D4CB85133FE71123EB8224E853ED51E1DFE5967823 - Body hash
FF8871B35C7541E0E47C8A31F579B767241A11B6BB7CE95967FAF936DFA34394 - IL size936
Referenced calls
System.Nullable<System.Guid>::.ctor(!0)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)Candide.CandideUI.Components.CandideIconLabel::set_Icon(System.String)CandideServer.Models.Town.TownModel::GetLocalizedName()Candide.CandideUI.Components.CandideIconLabel::set_Text(System.String)Candide.CandideUI.Containers.CandideGrid::ClearChildren()System.Collections.Generic.Dictionary<System.Guid, CandideServer.MessageModels.Towns.CitizenTownOverviewData>::GetEnumerator()TownOverviewControl.<>c__DisplayClass23_0::.ctor()Dictionary.Enumerator<System.Guid, CandideServer.MessageModels.Towns.CitizenTownOverviewData>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.MessageModels.Towns.CitizenTownOverviewData>::Deconstruct(!0&, !1&)Candide.CandideUI.Containers.CandideGrid::.ctor()System.Collections.ObjectModel.Collection<Candide.CandideUI.Proportion>::Add(!0)Candide.CandideUI.CandideUiElement::set_HorizontalAlignment(Candide.CandideUI.HorizontalAlignment)TownOverviewControl.<>c__DisplayClass23_0::<OnTownsChanged>b__0()System.Action::.ctor(System.Object, System.IntPtr)Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder::.ctor(Candide.CandideUI.TownOverview.TownOverviewControl, System.Action)Candide.CandideUI.CandideThickness::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)Candide.CandideUI.CandideUiElement::set_Margin(Candide.CandideUI.CandideThickness)Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder::set_Citizen(CandideServer.MessageModels.Towns.CitizenTownOverviewData)Candide.CandideUI.CandideUiElement::set_GridColumn(System.Int32)TownOverviewControl.<>c::<OnTownsChanged>b__23_1()System.Func<Candide.CandideUI.Tooltip.CandideTooltipGrowthDirection>::.ctor(System.Object, System.IntPtr)Candide.CandideUI.Components.Holder.CandideHolderBase::set_GetPreferredTooltipGrowthDirection(System.Func<Candide.CandideUI.Tooltip.CandideTooltipGrowthDirection>)Candide.CandideUI.TownOverview.TownOverviewControl::OnCitizenPickedUp(System.Object, Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent)System.EventHandler<Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent>::.ctor(System.Object, System.IntPtr)Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder::add_CitizenPickedUp(System.EventHandler<Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent>)Candide.CandideUI.CandideUiContainerMultipleItems::AddChild(Candide.CandideUI.CandideUiElement, System.Boolean)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Count()Candide.CandideUI.Components.Buttons.CandideIconButton::.ctor(System.String, CandideCreator.Shared.Graphics.IconFlag)
Called by
String literals
Not expected to happentown_coreTown_Overview_NoCitizensTown_Overview_NoCitizens_TipsTown_Overview_NoCitizenSlotsTown_AvailableAndUnavailableSlots
OnUiClosePressed
#
public System.Boolean OnUiClosePressed()
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
4796E495038D486BD789E8E3C8BE519E92D6D812F7E82535099BA27BC50684F0 - Body hash
9863A50AD19AB74D80A8FF0FB6902A4079F776F92C31614600FA15EEFEA2A684 - IL size61
Referenced calls
Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.CandideUI.CandideUiElement::GetFocusable()Candide.CandideUI.ControllerUiInputSystem::get_FocusedElement()Candide.CandideUI.CandideUiElement::RequestFocus()Candide.CandideUI.CandideUiContainerMultipleItems::OnUiClosePressed()
SendToTownButton_OnClick
#
private System.Void SendToTownButton_OnClick(CandideServer.MessageModels.Towns.CitizenTownOverviewData citizen, System.Guid sourceTownId)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
9A6F39F525BD35A0A7C1394C75904FF75D2C3389217EC5383886FEF1AF7EE7BC - Body hash
75A50C865839B1E1BF656CEF9DEF6FDC2506131EF0435F6AB846702A53608C84 - IL size660
Referenced calls
TownOverviewControl.<>c__DisplayClass28_0::.ctor()Candide.CandideUI.CandideUiElement::get_Desktop()Candide.CandideUI.Containers.CandideVerticalStackPanel::.ctor()Candide.CandideUI.Components.CandideTextLabel::.ctor()Candide.CandideUI.Components.CandideTextLabel::set_TextAlign(FontStashSharp.RichText.TextHorizontalAlignment)Candide.CandideUI.CandideUiElement::set_HorizontalAlignment(Candide.CandideUI.HorizontalAlignment)Shared.Text.StringDefinitions::GetString(System.String)Shared.Text.StringExtensions::GetTranslation(Shared.Text.StringId)System.String::Format(System.String, System.Object)Candide.CandideUI.Components.CandideTextLabel::set_Text(System.String)Candide.CandideUI.CandideUiContainerMultipleItems::AddChild(Candide.CandideUI.CandideUiElement, System.Boolean)Candide.CandideUI.Components.CandideHorizontalSeparator::.ctor()Candide.CandideUI.CandideThickness::.ctor(System.Int32, System.Int32)Candide.CandideUI.CandideUiElement::set_Padding(Candide.CandideUI.CandideThickness)Candide.CandideUI.Containers.CandideVerticalScrollViewer::.ctor()System.Nullable<System.Int32>::.ctor(!0)Candide.CandideUI.CandideUiElement::set_MaxHeight(System.Nullable<System.Int32>)Candide.CandideUI.CandideUiContainerSingleItem::SetChild(Candide.CandideUI.CandideUiElement)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::GetEnumerator()TownOverviewControl.<>c__DisplayClass28_1::.ctor()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.ClientTownModel>::Deconstruct(!0&, !1&)System.Guid::op_Equality(System.Guid, System.Guid)Candide.GameModels.Managers.TownsManager::GetAvailableBuildingAndSlotForOneCitizen(Candide.GameModels.Models.ClientTownModel)Candide.CandideUI.Components.Buttons.CandideButtonBase::.ctor()Candide.CandideUI.CandideThickness::.ctor(System.Int32)Candide.CandideUI.Components.CandideIconLabel::.ctor(CandideCreator.Shared.Graphics.IconFlag, System.Boolean)Candide.CandideUI.Components.CandideIconLabel::set_Icon(System.String)CandideServer.Models.Town.TownModel::GetLocalizedName()Candide.CandideUI.Components.CandideIconLabel::set_Text(System.String)System.Nullable<System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>>::get_HasValue()Candide.CandideUI.CandideUiElement::set_Enabled(System.Boolean)
String literals
Citizens_SendToTownCitizens_SendToTown_FullUi_Cancel
SetStatsTownDefence
#
private System.Void SetStatsTownDefence(Candide.CandideUI.Components.CandideIconLabel statsTownDefence)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
4681C5FBE7B2140DA86A34F71D9AD9D52A7A2E3929AED65C01B7128CE5C474C6 - Body hash
0B47148D8BFCC7908225D7AF9EC37515A0E21396C4176FB75F4E7565C95115A7 - IL size269
Referenced calls
Shared.Helpers.TownDefenceHelper::GetTownDefenceValues(System.Collections.Generic.HashSet<System.String>, System.Int32)System.Nullable<System.Int32>::GetValueOrDefault()System.Int32::ToString()Candide.CandideUI.Components.CandideIconLabel::set_Text(System.String)Candide.CandideUI.Components.CandideIconLabel::set_TextColor(Microsoft.Xna.Framework.Color)TownOverviewControl.<>c::<SetStatsTownDefence>b__24_0()System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>::.ctor(System.Object, System.IntPtr)Candide.CandideUI.Components.CandideIconLabel::set_GetTooltipContent(System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>)TownOverviewControl.<>c::<SetStatsTownDefence>b__24_1()TownOverviewControl.<>c::<SetStatsTownDefence>b__24_2()
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
5AD3C249895E67AE66D5C0B528C76999473394EC3316F5E09B42824D86AA74D7 - Body hash
1CA6F948167C426F7CF9944640D7E2D289B3DCD5A54717E0F5664A5CCCC14875 - IL size96
Referenced calls
Candide.CandideUI.CandideUiContainerMultipleItems::Update(Microsoft.Xna.Framework.GameTime)Candide.CandideUI.CandideExtendedInteractionsHandler::get_DraggedContent()System.Nullable<System.Guid>::.ctor(!0)System.Nullable<System.Guid>::get_HasValue()Candide.CandideUI.TownOverview.TownOverviewControl::set_HoveredCitizen(System.Nullable<System.Guid>)