C# Class MultiLabel, RPGQuest

Afficher le fichier Open project: hughrogers/RPGQuest Class Usage Examples

Méthodes publiques

Свойство Type Description
bar StatusBar[]
choicePositions Vector2[]
choiceSizes Vector2[]
colCount int
colFill ColumnFill
maxCol int
maxSelection int
newContent bool
newTextures bool
selection int
selectionHeight float
selectionOffset float
speakerPortrait SpeakerPortrait
viewHeight float

Protected Properties

Свойство Type Description
addScroll bool
bgFocusTexture Texture2D
bgTexture Texture2D
contentTexture Texture2D
dp DialoguePosition
nameTexture Texture2D
okTexture Texture2D
vScrollTexture Texture2D

Méthodes publiques

Méthode Description
AddBox ( TextPosition, textPosition ) : Rect
AddContent ( TextPosition, textPosition ) : float
AddName ( string name ) : void
AddOk ( ) : void
AddScroll ( Rect b, float p2OffsetY, TextPosition, textPosition ) : void
ChangeScroll ( float add ) : void
ChangeSelection ( int add ) : void
ChangeSelectionHorizontal ( int add ) : void
ChangeSelectionVertical ( int add ) : void
CheckChoice ( Vector2 mousePosition ) : void
CheckDrag ( Vector2 mousePosition ) : ChoiceContent,
CheckDrop ( Vector2 mousePosition ) : ChoiceContent,
ChoiceWindow ( int windowID ) : void
CreateChoiceContents ( GUIContent choices ) : ChoiceContent[],
CreateChoiceContents ( string choices ) : ChoiceContent[],
CreateContent ( DialoguePosition, dp, string name, string text, ChoiceContent, choices, SpeakerPortrait, speakerPortrait, StatusBar, bar ) : void
DeleteTextures ( ) : void
EqualChoices ( ChoiceContent, choices ) : bool
EqualContent ( string text, ChoiceContent, choices ) : bool
GetBackgroundTexture ( ) : Texture2D
GetColorString ( int color ) : string
GetContentTexture ( ) : Texture2D
GetDragOnPosition ( Vector2 pos ) : ChoiceContent,
GetDropOnPosition ( Vector2 pos ) : ChoiceContent,
GetNameTexture ( ) : Texture2D
GetOkTexture ( ) : Texture2D
GetSelection ( ) : int
GetShadowColorString ( int color ) : string
GetUnshownText ( ) : string
GetVScrollTexture ( ) : Texture2D
HasContentTexture ( ) : bool
HasNameTexture ( ) : bool
HasOkTexture ( ) : bool
HasVScrollTexture ( ) : bool
IsChoice ( ) : bool
MultiLabel ( ) : UnityEngine
NextSpecial ( string text, string special ) : int
NextSpecialString ( string text, string special ) : string
ReShow ( string text ) : void
ReplaceSpecials ( string text ) : string
ResetScroll ( ) : void
SetSelection ( int index ) : void
ShowChoice ( DialoguePosition dp, string text, string name, ChoiceContent choices ) : bool
ShowChoice ( DialoguePosition dp, string text, string name, ChoiceContent choices, SpeakerPortrait speakerPortrait, StatusBar bar ) : bool
ShowChoice ( DialoguePosition dp, string text, string name, GUIContent choices ) : bool
ShowChoice ( DialoguePosition dp, string text, string name, GUIContent choices, SpeakerPortrait speakerPortrait ) : bool
ShowChoice ( DialoguePosition dp, string text, string name, string choices ) : bool
ShowChoice ( DialoguePosition dp, string text, string name, string choices, SpeakerPortrait speakerPortrait ) : bool
ShowOneLine ( DialoguePosition dp, string text ) : string
ShowOneLine ( DialoguePosition dp, string text, int c1, int c2 ) : string
ShowText ( DialoguePosition dp, string text, string name ) : string
ShowText ( DialoguePosition dp, string text, string name, SpeakerPortrait speakerPortrait ) : string
ShowText ( string text, string name ) : string
TextWindow ( int windowID ) : void
Tick ( float t ) : void

Method Details

AddBox() public méthode

public AddBox ( TextPosition, textPosition ) : Rect
textPosition TextPosition,
Résultat Rect

AddContent() public méthode

public AddContent ( TextPosition, textPosition ) : float
textPosition TextPosition,
Résultat float

AddName() public méthode

public AddName ( string name ) : void
name string
Résultat void

AddOk() public méthode

public AddOk ( ) : void
Résultat void

AddScroll() public méthode

public AddScroll ( Rect b, float p2OffsetY, TextPosition, textPosition ) : void
b Rect
p2OffsetY float
textPosition TextPosition,
Résultat void

ChangeScroll() public méthode

public ChangeScroll ( float add ) : void
add float
Résultat void

ChangeSelection() public méthode

public ChangeSelection ( int add ) : void
add int
Résultat void

ChangeSelectionHorizontal() public méthode

public ChangeSelectionHorizontal ( int add ) : void
add int
Résultat void

ChangeSelectionVertical() public méthode

public ChangeSelectionVertical ( int add ) : void
add int
Résultat void

CheckChoice() public méthode

public CheckChoice ( Vector2 mousePosition ) : void
mousePosition Vector2
Résultat void

CheckDrag() public méthode

public CheckDrag ( Vector2 mousePosition ) : ChoiceContent,
mousePosition Vector2
Résultat ChoiceContent,

CheckDrop() public méthode

public CheckDrop ( Vector2 mousePosition ) : ChoiceContent,
mousePosition Vector2
Résultat ChoiceContent,

ChoiceWindow() public méthode

public ChoiceWindow ( int windowID ) : void
windowID int
Résultat void

CreateChoiceContents() public static méthode

public static CreateChoiceContents ( GUIContent choices ) : ChoiceContent[],
choices GUIContent
Résultat ChoiceContent[],

CreateChoiceContents() public static méthode

public static CreateChoiceContents ( string choices ) : ChoiceContent[],
choices string
Résultat ChoiceContent[],

CreateContent() public méthode

public CreateContent ( DialoguePosition, dp, string name, string text, ChoiceContent, choices, SpeakerPortrait, speakerPortrait, StatusBar, bar ) : void
dp DialoguePosition,
name string
text string
choices ChoiceContent,
speakerPortrait SpeakerPortrait,
bar StatusBar,
Résultat void

DeleteTextures() public méthode

public DeleteTextures ( ) : void
Résultat void

EqualChoices() public méthode

public EqualChoices ( ChoiceContent, choices ) : bool
choices ChoiceContent,
Résultat bool

EqualContent() public méthode

public EqualContent ( string text, ChoiceContent, choices ) : bool
text string
choices ChoiceContent,
Résultat bool

GetBackgroundTexture() public méthode

public GetBackgroundTexture ( ) : Texture2D
Résultat UnityEngine.Texture2D

GetColorString() public static méthode

public static GetColorString ( int color ) : string
color int
Résultat string

GetContentTexture() public méthode

public GetContentTexture ( ) : Texture2D
Résultat UnityEngine.Texture2D

GetDragOnPosition() public méthode

public GetDragOnPosition ( Vector2 pos ) : ChoiceContent,
pos Vector2
Résultat ChoiceContent,

GetDropOnPosition() public méthode

public GetDropOnPosition ( Vector2 pos ) : ChoiceContent,
pos Vector2
Résultat ChoiceContent,

GetNameTexture() public méthode

public GetNameTexture ( ) : Texture2D
Résultat UnityEngine.Texture2D

GetOkTexture() public méthode

public GetOkTexture ( ) : Texture2D
Résultat UnityEngine.Texture2D

GetSelection() public méthode

public GetSelection ( ) : int
Résultat int

GetShadowColorString() public static méthode

public static GetShadowColorString ( int color ) : string
color int
Résultat string

GetUnshownText() public méthode

public GetUnshownText ( ) : string
Résultat string

GetVScrollTexture() public méthode

public GetVScrollTexture ( ) : Texture2D
Résultat Texture2D

HasContentTexture() public méthode

public HasContentTexture ( ) : bool
Résultat bool

HasNameTexture() public méthode

public HasNameTexture ( ) : bool
Résultat bool

HasOkTexture() public méthode

public HasOkTexture ( ) : bool
Résultat bool

HasVScrollTexture() public méthode

public HasVScrollTexture ( ) : bool
Résultat bool

IsChoice() public méthode

public IsChoice ( ) : bool
Résultat bool

MultiLabel() public méthode

public MultiLabel ( ) : UnityEngine
Résultat UnityEngine

NextSpecial() public static méthode

public static NextSpecial ( string text, string special ) : int
text string
special string
Résultat int

NextSpecialString() public static méthode

public static NextSpecialString ( string text, string special ) : string
text string
special string
Résultat string

ReShow() public méthode

public ReShow ( string text ) : void
text string
Résultat void

ReplaceSpecials() public static méthode

public static ReplaceSpecials ( string text ) : string
text string
Résultat string

ResetScroll() public méthode

public ResetScroll ( ) : void
Résultat void

SetSelection() public méthode

public SetSelection ( int index ) : void
index int
Résultat void

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, ChoiceContent choices ) : bool
dp DialoguePosition
text string
name string
choices ChoiceContent
Résultat bool

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, ChoiceContent choices, SpeakerPortrait speakerPortrait, StatusBar bar ) : bool
dp DialoguePosition
text string
name string
choices ChoiceContent
speakerPortrait SpeakerPortrait
bar StatusBar
Résultat bool

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, GUIContent choices ) : bool
dp DialoguePosition
text string
name string
choices GUIContent
Résultat bool

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, GUIContent choices, SpeakerPortrait speakerPortrait ) : bool
dp DialoguePosition
text string
name string
choices GUIContent
speakerPortrait SpeakerPortrait
Résultat bool

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, string choices ) : bool
dp DialoguePosition
text string
name string
choices string
Résultat bool

ShowChoice() public méthode

public ShowChoice ( DialoguePosition dp, string text, string name, string choices, SpeakerPortrait speakerPortrait ) : bool
dp DialoguePosition
text string
name string
choices string
speakerPortrait SpeakerPortrait
Résultat bool

ShowOneLine() public méthode

public ShowOneLine ( DialoguePosition dp, string text ) : string
dp DialoguePosition
text string
Résultat string

ShowOneLine() public méthode

public ShowOneLine ( DialoguePosition dp, string text, int c1, int c2 ) : string
dp DialoguePosition
text string
c1 int
c2 int
Résultat string

ShowText() public méthode

public ShowText ( DialoguePosition dp, string text, string name ) : string
dp DialoguePosition
text string
name string
Résultat string

ShowText() public méthode

public ShowText ( DialoguePosition dp, string text, string name, SpeakerPortrait speakerPortrait ) : string
dp DialoguePosition
text string
name string
speakerPortrait SpeakerPortrait
Résultat string

ShowText() public méthode

public ShowText ( string text, string name ) : string
text string
name string
Résultat string

TextWindow() public méthode

public TextWindow ( int windowID ) : void
windowID int
Résultat void

Tick() public méthode

public Tick ( float t ) : void
t float
Résultat void

Property Details

addScroll protected_oe property

protected bool addScroll
Résultat bool

bar public_oe property

public StatusBar[] bar
Résultat StatusBar[]

bgFocusTexture protected_oe property

protected Texture2D bgFocusTexture
Résultat Texture2D

bgTexture protected_oe property

protected Texture2D bgTexture
Résultat Texture2D

choicePositions public_oe property

public Vector2[] choicePositions
Résultat Vector2[]

choiceSizes public_oe property

public Vector2[] choiceSizes
Résultat Vector2[]

colCount public_oe property

public int colCount
Résultat int

colFill public_oe property

public ColumnFill colFill
Résultat ColumnFill

contentTexture protected_oe property

protected Texture2D contentTexture
Résultat Texture2D

dp protected_oe property

protected DialoguePosition dp
Résultat DialoguePosition

maxCol public_oe property

public int maxCol
Résultat int

maxSelection public_oe property

public int maxSelection
Résultat int

nameTexture protected_oe property

protected Texture2D nameTexture
Résultat Texture2D

newContent public_oe property

public bool newContent
Résultat bool

newTextures public_oe property

public bool newTextures
Résultat bool

okTexture protected_oe property

protected Texture2D okTexture
Résultat Texture2D

selection public_oe property

public int selection
Résultat int

selectionHeight public_oe property

public float selectionHeight
Résultat float

selectionOffset public_oe property

public float selectionOffset
Résultat float

speakerPortrait public_oe property

public SpeakerPortrait speakerPortrait
Résultat SpeakerPortrait

vScrollTexture protected_oe property

protected Texture2D vScrollTexture
Résultat Texture2D

viewHeight public_oe property

public float viewHeight
Résultat float