I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

Difference between revisions of "Legacy:Solid Snake/CeGUIStyles"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (fixed bad game link)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{classbox| Chaos Engine:: [http://wiki.beyondunreal.com/wiki/Solid_Snake/Chaos_Engine ceInterface] >> ceGUIStyles}}
+
{{classbox| [[Legacy:UT2004|UT2004]] :: [[Legacy:Object|Object]] >> [[Legacy:GUI|GUI]] >> [[Legacy:GUIStyles|GUIStyles]] >> [[Legacy:GUI2Styles|GUI2Styles]] >> ceGUIStyles}}
  
ceGUIStyles are the 'style' of the GUIComponet as such. While this extends GUIStyles, most of its functionality has been stripped away and removed, and replaced into ceModuleInfo instead such as the drawing responsibilities that GUIStyles used to do. However, you can subclass this to return its original function if you wished.
+
==Properties==
 +
; bool bNativeOnDraw :
 +
; bool bNativeOnDrawText :
 +
; array<float> FloatData :
 +
; array<int> IntData :
 +
; Font LastFont :
 +
; eFontScale LastFontScale :
 +
; eMenuState LastState :
 +
; array<string> StringData :
 +
; s_Fonts StyleFonts[5] :
 +
; string StyleName :
 +
; array<vector> VectorData :
  
==Variables ==
+
==Structures==
; FloatData ([[Legacy:Dynamic_Array|array<float>]]) : This stores an array of temporary float data that you can use.
+
; IntData ([[Legacy:Dynamic_Array|array<int>]]) : This stores an array of temporary int data that you can use.
+
; VectorData ([[Legacy:Dynamic_Array|array<vector>]]) : This stores an array of temporary vector data that you can use.
+
; StringData ([[Legacy:Dynamic_Array|array<string>]]) : This stores an array of temporary string data that you can use.
+
  
==Functions ==
+
===s_Fonts===
; function class<ceModuleInfo> GetModuleInfo() : This returns the current module info class set within ceGUIController. If it isn't there then class'ceModuleInfo' will be returned to avoid any access none errors.
+
  
; function ceModuleInfo.s_GUIDrawStyle GetStyle([[Legacy:GUI|MenuState]] MenuState) : This returns the style data set which is stored from the module that is returned by GetModuleInfo(). This allows the style to out source its style.
+
====ceGUIStyles====
 +
; array<GUIFont> Font :  
  
; function bool InternalOnDraw([[Legacy:Canvas|Canvas]] Canvas, [[Legacy:GUI|eMenuState]] MenuState, [[Legacy:Variable_Type|float]] Left, [[Legacy:Variable_Type|float]] Top, [[Legacy:Variable_Type|float]] Width, [[Legacy:Variable_Type|float]] Height) : This handles the drawing of the GUIComponent. By default, this then calls the PreDrawComponent, DrawComponent and the PostDrawComponent within ceModuleInfo through a static function. ActualLeft, ActualWidth, ActualTop and ActualHeight are calculated here and sent to ceModuleInfo as well. You can override this function in subclasses, but remember to return true, otherwise the native rendering function will also be called.
+
==Functions==
 +
;  FillStyle( ):
 +
; Font GetFont(eFontScale FontScale, eMenuState State ):
 +
; class<ceModuleInfo> GetModuleInfo( ):
 +
;  InitializeFonts( ):
 +
; bool InternalOnDraw(Canvas Canvas, eMenuState MenuState, float Left, float Top, float Width, float Height ):  
 +
; bool InternalOnDrawText(Canvas Canvas, eMenuState MenuState, float Left, float Top, float Width, float Height, eTextAlign Align, string Text, eFontScale FontScale ):
 +
;  SetNativeOnDraw(bool bNewNativeOnDraw ):
 +
;  SetNativeOnDrawText(bool bNewNativeOnDrawText ):
  
===Comments ===
+
==Events==

Latest revision as of 03:22, 17 May 2008

UT2004 :: Object >> GUI >> GUIStyles >> GUI2Styles >> ceGUIStyles

Properties[edit]

bool bNativeOnDraw 
bool bNativeOnDrawText 
array<float> FloatData 
array<int> IntData 
Font LastFont 
eFontScale LastFontScale 
eMenuState LastState 
array<string> StringData 
s_Fonts StyleFonts[5] 
string StyleName 
array<vector> VectorData 

Structures[edit]

s_Fonts[edit]

ceGUIStyles[edit]

array<GUIFont> Font 

Functions[edit]

FillStyle( )
Font GetFont(eFontScale FontScale, eMenuState State )
class<ceModuleInfo> GetModuleInfo( )
InitializeFonts( )
bool InternalOnDraw(Canvas Canvas, eMenuState MenuState, float Left, float Top, float Width, float Height )
bool InternalOnDrawText(Canvas Canvas, eMenuState MenuState, float Left, float Top, float Width, float Height, eTextAlign Align, string Text, eFontScale FontScale )
SetNativeOnDraw(bool bNewNativeOnDraw )
SetNativeOnDrawText(bool bNewNativeOnDrawText )

Events[edit]