C# Class Badgebook, CodeSpells

Inheritance: MonoBehaviour
Show file Open project: srfoster/CodeSpells Class Usage Examples

Public Properties

Property Type Description
background UnityEngine.Texture2D
button_down_texture UnityEngine.Texture2D
button_style GUIStyle
button_up_texture UnityEngine.Texture2D
font Font
next_button_texture UnityEngine.Texture2D
prev_button_texture UnityEngine.Texture2D
showOrangeBorder bool

Public Methods

Method Description
Add ( string name, string label, string icon_path, bool popup ) : void
AddColumn ( int height ) : void
Complete ( string name ) : bool
Contains ( string name ) : bool
IsComplete ( string name ) : bool
MakeButtonUnlockable ( string name ) : void
MarkAlreadyComplete ( string name ) : bool
OnGUI ( ) : void
Replace ( string name, string new_name, string label, string path, bool popup ) : void
Start ( ) : void
displayPage ( int page_number, int table_width, int table_height ) : void
displayPages ( ) : void
show ( GameObject previous_state ) : void

Private Methods

Method Description
getNumberOfPages ( ) : int
tryUnlock ( ) : void

Method Details

Add() public method

public Add ( string name, string label, string icon_path, bool popup ) : void
name string
label string
icon_path string
popup bool
return void

AddColumn() public method

public AddColumn ( int height ) : void
height int
return void

Complete() public method

public Complete ( string name ) : bool
name string
return bool

Contains() public method

public Contains ( string name ) : bool
name string
return bool

IsComplete() public method

public IsComplete ( string name ) : bool
name string
return bool

MakeButtonUnlockable() public method

public MakeButtonUnlockable ( string name ) : void
name string
return void

MarkAlreadyComplete() public method

public MarkAlreadyComplete ( string name ) : bool
name string
return bool

OnGUI() public method

public OnGUI ( ) : void
return void

Replace() public method

public Replace ( string name, string new_name, string label, string path, bool popup ) : void
name string
new_name string
label string
path string
popup bool
return void

Start() public method

public Start ( ) : void
return void

displayPage() public method

public displayPage ( int page_number, int table_width, int table_height ) : void
page_number int
table_width int
table_height int
return void

displayPages() public method

public displayPages ( ) : void
return void

show() public method

public show ( GameObject previous_state ) : void
previous_state GameObject
return void

Property Details

background public property

public Texture2D,UnityEngine background
return UnityEngine.Texture2D

button_down_texture public property

public Texture2D,UnityEngine button_down_texture
return UnityEngine.Texture2D

button_style public property

public GUIStyle button_style
return GUIStyle

button_up_texture public property

public Texture2D,UnityEngine button_up_texture
return UnityEngine.Texture2D

font public property

public Font font
return Font

next_button_texture public property

public Texture2D,UnityEngine next_button_texture
return UnityEngine.Texture2D

prev_button_texture public property

public Texture2D,UnityEngine prev_button_texture
return UnityEngine.Texture2D

showOrangeBorder public property

public bool showOrangeBorder
return bool