C# Class ModalManager, Hero.Coli

Inheritance: MonoBehaviour
ファイルを表示 Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
completeNameSuffix string
explanationLabel UILocalize,
foregroundZ float
gameObjectName string
genericCancelButton GameObject
genericCenteredValidateButton GameObject
genericModalWindow GameObject
genericValidateButton GameObject
infoSprite UISprite,
inputFiles string[]
modalBackground GameObject
titleLabel UILocalize,

Public Methods

Method Description
get ( ) : ModalManager,
isCancelButtonActive ( ) : bool
manageKeyPresses ( ) : GameStateTarget
resetGenericValidateButtons ( ) : void
setModal ( string code, bool lockPause = true ) : bool
setModal ( GameObject guiComponent, bool lockPause = true, GameObject validateButton = null, string validateButtonClass = null, GameObject cancelButton = null, string cancelButtonClass = null ) : void
unsetModal ( bool backgroundActive = false ) : void

Private Methods

Method Description
Awake ( ) : void
fillInFieldsFromCode ( string code ) : bool
loadDataIntoDico ( string inputFiles, StandardInfoWindowInfo>.Dictionary dico ) : void
manageCancelButton ( ) : bool
manageInfoWindows ( ) : GameStateTarget
manageModalButton ( GameObject modalButton, string modalButtonClass ) : bool
manageValidateButton ( ) : bool
needsCancelButton ( string validateButtonClassName ) : bool
prepareButton ( GameObject button, string modalButtonClass ) : void
prepareGenericCancelButton ( string cancelClass ) : void
removeAllModalButtonClasses ( GameObject button ) : void
resetGenericCancelButton ( ) : void
retrieveFromDico ( string code ) : StandardInfoWindowInfo,
safeAddComponent ( GameObject button, string modalClass ) : void
setCancelButton ( GameObject cb, string cbClass ) : void
setValidateButton ( GameObject vb, string vbClass ) : void

Method Details

get() public static method

public static get ( ) : ModalManager,
return ModalManager,

isCancelButtonActive() public static method

public static isCancelButtonActive ( ) : bool
return bool

manageKeyPresses() public static method

public static manageKeyPresses ( ) : GameStateTarget
return GameStateTarget

resetGenericValidateButtons() public static method

public static resetGenericValidateButtons ( ) : void
return void

setModal() public static method

public static setModal ( string code, bool lockPause = true ) : bool
code string
lockPause bool
return bool

setModal() public static method

public static setModal ( GameObject guiComponent, bool lockPause = true, GameObject validateButton = null, string validateButtonClass = null, GameObject cancelButton = null, string cancelButtonClass = null ) : void
guiComponent GameObject
lockPause bool
validateButton GameObject
validateButtonClass string
cancelButton GameObject
cancelButtonClass string
return void

unsetModal() public static method

public static unsetModal ( bool backgroundActive = false ) : void
backgroundActive bool
return void

Property Details

completeNameSuffix public_oe static_oe property

public static string completeNameSuffix
return string

explanationLabel public_oe property

public UILocalize, explanationLabel
return UILocalize,

foregroundZ public_oe property

public float foregroundZ
return float

gameObjectName public_oe static_oe property

public static string gameObjectName
return string

genericCancelButton public_oe property

public GameObject genericCancelButton
return GameObject

genericCenteredValidateButton public_oe property

public GameObject genericCenteredValidateButton
return GameObject

genericModalWindow public_oe property

public GameObject genericModalWindow
return GameObject

genericValidateButton public_oe property

public GameObject genericValidateButton
return GameObject

infoSprite public_oe property

public UISprite, infoSprite
return UISprite,

inputFiles public_oe property

public string[] inputFiles
return string[]

modalBackground public_oe property

public GameObject modalBackground
return GameObject

titleLabel public_oe property

public UILocalize, titleLabel
return UILocalize,