C# Class Spellbook, CodeSpells

Exibir arquivo Open project: srfoster/CodeSpells Class Usage Examples

Public Properties

Property Type Description
button_down_texture UnityEngine.Texture2D
button_style GUIStyle
button_up_texture UnityEngine.Texture2D
code_font Font
code_style GUIStyle
copy_button_texture UnityEngine.Texture2D
half_code_style GUIStyle
next_button_texture UnityEngine.Texture2D
pages List
prev_button_texture UnityEngine.Texture2D

Public Methods

Method Description
Add ( SpellbookPage, page ) : void
OnGUI ( ) : void
addExistingSpell ( string name, string code ) : void
copyBlankSpell ( ) : string
displayCurrentPage ( ) : void
displayScaledPage ( HalfBook, halfbook ) : void
getIncName ( string name ) : string
logCurrentPage ( ) : void
pageChangeButtons ( Rect prev, Rect next ) : void
setNameCounter ( string name ) : void
setNoCopyDisplay ( bool b ) : void
show ( GameObject previous_state ) : void
showCode ( ) : void

Private Methods

Method Description
Start ( ) : IEnumerator
currentPage ( ) : SpellbookPage,
givePlayerAScroll ( ) : string

Method Details

Add() public method

public Add ( SpellbookPage, page ) : void
page SpellbookPage,
return void

OnGUI() public method

public OnGUI ( ) : void
return void

addExistingSpell() public method

public addExistingSpell ( string name, string code ) : void
name string
code string
return void

copyBlankSpell() public method

public copyBlankSpell ( ) : string
return string

displayCurrentPage() public method

public displayCurrentPage ( ) : void
return void

displayScaledPage() public method

public displayScaledPage ( HalfBook, halfbook ) : void
halfbook HalfBook,
return void

getIncName() public method

public getIncName ( string name ) : string
name string
return string

logCurrentPage() public method

public logCurrentPage ( ) : void
return void

pageChangeButtons() public method

public pageChangeButtons ( Rect prev, Rect next ) : void
prev Rect
next Rect
return void

setNameCounter() public method

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

setNoCopyDisplay() public method

public setNoCopyDisplay ( bool b ) : void
b bool
return void

show() public method

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

showCode() public method

public showCode ( ) : void
return void

Property Details

button_down_texture public_oe property

public Texture2D,UnityEngine button_down_texture
return UnityEngine.Texture2D

button_style public_oe property

public GUIStyle button_style
return GUIStyle

button_up_texture public_oe property

public Texture2D,UnityEngine button_up_texture
return UnityEngine.Texture2D

code_font public_oe property

public Font code_font
return Font

code_style public_oe property

public GUIStyle code_style
return GUIStyle

copy_button_texture public_oe property

public Texture2D,UnityEngine copy_button_texture
return UnityEngine.Texture2D

half_code_style public_oe property

public GUIStyle half_code_style
return GUIStyle

next_button_texture public_oe property

public Texture2D,UnityEngine next_button_texture
return UnityEngine.Texture2D

pages public_oe property

public List pages
return List

prev_button_texture public_oe property

public Texture2D,UnityEngine prev_button_texture
return UnityEngine.Texture2D