static void GUISkin_customStyles(JSVCall vc) { if (vc.bGet) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.customStyles; var arrRet = result; for (int i = 0; arrRet != null && i < arrRet.Length; i++) { JSMgr.datax.setObject((int)JSApi.SetType.SaveAndTempTrace, arrRet[i]); JSApi.moveSaveID2Arr(i); } JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true); } else { UnityEngine.GUIStyle[] arg0 = JSDataExchangeMgr.GetJSArg <UnityEngine.GUIStyle[]>(() => { int jsObjID = JSApi.getObject((int)JSApi.GetType.Arg); int length = JSApi.getArrayLength(jsObjID); var ret = new UnityEngine.GUIStyle[length]; for (var i = 0; i < length; i++) { JSApi.getElement(jsObjID, i); ret[i] = (UnityEngine.GUIStyle)JSMgr.datax.getObject((int)JSApi.GetType.SaveAndRemove); } return(ret); }); UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; _this.customStyles = arg0; } }
void OnGUI() { if (skin == null) skin = new GUISkin(); GUILayout.Box("Build Project Tool By Zhang Shining Publish at 2014-1-11", skin.FindStyle("Box"), GUILayout.ExpandWidth(true)); PackageInfo(); if (mFlatform == null) { GetPaltform(thisWindow); return; } mFlatform.Setting(); // GUILayout.Space(10); if (mFlatform != null) mFlatform.Draw(); if (GUILayout.Button("Build", GUILayout.ExpandWidth(true))) { BuildCommon(); } PackageScene(); }
//private PlayerScript controller; public PlayState2 (StateManager managerRef) { //Constructor manager = managerRef; Debug.Log ("Constructing PlayState2"); manager.darkState = false; "Stage2".LoadScene (); //if (Application.loadedLevelName != "Stage2") // Application.LoadLevel ("Stage2"); StaticMethods.SetOneActive ("Following Camera", manager.gameDataRef.cameras); //Camera that follows the Player, setOneActive method player = GameObject.FindGameObjectWithTag ("Player"); //the Player GameObject is now active and can be found player.GetComponent<Rigidbody2D> ().isKinematic = false; //Player is now affected by physics player.transform.SetPositionXY (-6.0f, -0.4f); //set starting position for Player skin = Resources.Load ("GUISkin") as GUISkin; //darkness = GameObject.FindGameObjectWithTag ("Darkness"); //dark.a += 0f; //darkness.GetComponent<Renderer>().material.color = dark; //darkness.GetComponent<Renderer>().material.color.a; //Color dark = darkness.renderer.material.color; //dark.a -= 0; //darkness.renderer.material.color = color; }
public void setTopRightPosition(int x, int y, GUISkin skin) { setStyle(skin,config.styleName,out config.style); config.top = y; config.right = x; recalculatePositions(); }
public PlayState1 (StateManager managerRef) { //Constructor manager = managerRef; Debug.Log ("Constructing PlayState1 from Xamarin"); "Stage1".LoadScene (); //if (Application.loadedLevelName != "Stage1") // Application.LoadLevel ("Stage1"); //StaticMethods.SetActive ("Player", manager.gameDataRef.activeObjects); //Set Player active, setOneActive method StaticMethods.SetActive ("Darkness_Layer", manager.gameDataRef.activeObjects); StaticMethods.SetOneActive ("Following Camera", manager.gameDataRef.cameras); //Camera that follows the Player, setOneActive method //"Following Camera".SetOneActive (manager.gameDataRef.cameras); //setManyActive (managerRef.gameDataRef.GUIObjects); //Set all GUI elements active, setActive method player = GameObject.FindGameObjectWithTag ("Player"); //the Player GameObject is now active and can be found player.GetComponent<Rigidbody2D> ().isKinematic = false; //Player is now affected by physics player.transform.SetPositionXY (-5.8f, -0.4f); //set starting position for Player player.transform.SetLocalScale (0.3f, 0.3f, 1f); //Set initial scale skin = Resources.Load ("GUISkin") as GUISkin; /* if (GameObject.Find ("Platform")) { Debug.Log ("platform"); //platform = GameObject.Find ("Platform"); } else Debug.Log ("no platform"); */ //darkness.GetComponent<Renderer>().material.color.a; //Color dark = darkness.renderer.material.color; //dark.a -= 0; //darkness.renderer.material.color = color; }
// Use this for initialization void Start() { titleSkin = (GUISkin)Resources.Load("TimerGUISkin"); titleGraphic = (Texture2D)Resources.Load("Title-Logo"); gameManager = GetComponent<GameManager>(); }
public SettingsMenuWrapper(mod.Mod mod, float initialMultiplier) { _settingsSkin = (GUISkin)Resources.Load("_GUISkins/Settings"); _regularUI = (GUISkin)Resources.Load("_GUISkins/RegularUI"); _mod = mod; _multiplier = initialMultiplier; }
public void OnSceneGUI() { handles = Resources.Load("Handles")as GUISkin; GUI.skin = handles; GameObject TestSphere = GameObject.Find("Test Sphere"); FindFaces findFaces = (FindFaces) TestSphere.GetComponent(typeof(FindFaces)); if (findFaces.meshBuilt == true) { for(int i = 0; i< findFaces.finalVertices.Length; i++) { Handles.Label (findFaces.finalVertices[i], ""+i+""); Handles.color = Color.blue; Handles.Label (new Vector3(100,0,83), "Vertices"); } } if (findFaces.polyScanned == true) { for(int i = 0; i< findFaces.polyNumber; i++) { Handles.Label (findFaces.polygon[i].transform.position, ""+i+""); Handles.color = Color.red; Handles.Label (new Vector3(100,20,83), "Polys"); } } }
public VideoSuscribeWindow(GUISkin skin, RoomVariableManager rvm, Texture2D videoDef, Texture2D videoTimeOut) { gSkin = skin; RoomVariableMgr = rvm; windowsCreated = false; adviceMessage = "No se selecciono usuario"; endSuscriptionMessage = "Terminar suscripcion"; endSuscriptionQuestion = "Desea terminar la suscripcion?"; videoFrame = new VidFrame(false); videoRunning = false; adviceWindowOn = false; closeQuestionOn = false; totalWidth = 500; menuWidth = totalWidth/3; listWidth = totalWidth-menuWidth; totalHeight = 400; conectionsList = new List<GUIContent>(); userScrollPosition = Vector2.zero; conectionScrollPosition = Vector2.zero; selectedConection = -1; tempSelectedConection = -1; selectedUser = -1; tempSelectedUser = -1; videoDefault = videoDef; enableWindow = false; timedOut = false; videoTimedOut = videoTimeOut; countDownTimer = new CountDownTimer(10); }
public Label(string pTextureName, string pLabel, Vector2 pPosition, string pSkinName) : base(pTextureName, pPosition) { _label = pLabel; _skin = (GUISkin)Resources.Load(pSkinName); if(_skin == null) { throw new Exception("Can't find BasicSkin"); } }
void Start() { // Load a skin for the buttons skin = Resources.Load("GUISkin") as GUISkin; skin.label.fontSize = 32 * Screen.width / 800; //skin.label.alignment = TextAnchor.UpperCenter; }
/// <summary> /// Initializes a new instance of the <see cref="Button"/> class. /// </summary> /// <param name='bounds'> /// Bounds. /// </param> /// <param name='content'> /// Content. /// </param> /// <param name='style'> /// Style. /// </param> public Button(Rectangle bounds, GUIContent content, GUISkin skin) : this() { this.Bounds = bounds; this.Content = content; this.Skin = skin; }
public ArmorEditor(GUISkin guiSkin, MainWindowEditor data) { EditorName = "Armor"; Init(guiSkin, data); LoadData(); }
public Styles() { #if UNITY_EDITOR this.skin = Resources.Load<GUISkin>("UI.Windows/Core/Styles/Boxes/" + (UnityEditor.EditorGUIUtility.isProSkin == true ? "SkinDark" : "SkinLight")); this.boxes = new GUIStyle[WindowLayoutStyles.MAX_DEPTH] { this.skin.FindStyle("flow node 0"), this.skin.FindStyle("flow node 1"), this.skin.FindStyle("flow node 2"), this.skin.FindStyle("flow node 3"), this.skin.FindStyle("flow node 4"), this.skin.FindStyle("flow node 5") }; this.boxesSelected = new GUIStyle[WindowLayoutStyles.MAX_DEPTH] { this.skin.FindStyle("flow node 0"), // on this.skin.FindStyle("flow node 1"), this.skin.FindStyle("flow node 2"), this.skin.FindStyle("flow node 3"), this.skin.FindStyle("flow node 4"), this.skin.FindStyle("flow node 5") }; this.boxSelected = this.skin.FindStyle("flow node 5"); #endif }
public virtual void Start() { //load menu select sound cursorMoveSound = Resources.Load<AudioClip>("menu_select"); //load gui skin guiSkin = Resources.Load<GUISkin>("DefaultSkin"); }
public Styles() { this.skin = Resources.Load("UI.Windows/Flow/Styles/Skin" + (EditorGUIUtility.isProSkin == true ? "Dark" : "Light")) as GUISkin; if (this.skin != null) { this.backLock = this.skin.FindStyle("LayoutBackLock"); this.content = this.skin.FindStyle("LayoutContent"); this.contentScreen = this.skin.FindStyle("LayoutContentScreen"); this.closeButton = new GUIStyle("TL SelectionBarCloseButton"); this.listButton = this.skin.FindStyle("ListButton"); this.listButtonSelected = this.skin.FindStyle("ListButtonSelected"); this.listTag = new GUIStyle(this.skin.FindStyle("ListButton")); this.listTag.alignment = TextAnchor.MiddleRight; this.objectField = this.skin.FindStyle("ObjectField"); this.layoutBack = this.skin.FindStyle("LayoutBack"); this.dropShadow = this.skin.FindStyle("DropShadowOuter"); this.tabButtonLeft = new GUIStyle("ButtonLeft"); this.tabButtonLeft.margin = new RectOffset(); this.tabButtonMid = new GUIStyle("ButtonMid"); this.tabButtonMid.margin = new RectOffset(); this.tabButtonRight = new GUIStyle("ButtonRight"); this.tabButtonRight.margin = new RectOffset(); } }
void Awake() { this.skin = Resources.Load <GUISkin>(GuiSkinLocation); this.recorder = GetComponent<RecordingManaging>(); this.InitLogo(); DontDestroyOnLoad(this.gameObject); }
public static void Add(string name, GUISkin s) { if (skins == null) { skins = new Dictionary<string, GUISkin>(); } if (skins.ContainsKey(name)) { skins[name] = s; } else { skins.Add(name, s); } if (name == "blank") { blank = s; } if (name == "default") { skin = s; } }
public Styles() { this.skin = Resources.Load<GUISkin>("UI.Windows/Core/Styles/" + (EditorGUIUtility.isProSkin == true ? "SkinDark" : "SkinLight")); this.transitionA = this.skin.FindStyle("TransitionA"); this.transitionB = this.skin.FindStyle("TransitionB"); }
private static void PrintStyles(GUISkin skin) { EditorGUILayout.BeginVertical(); foreach (GUIStyle style in skin.customStyles) { GUILayout.BeginHorizontal(); GUILayout.Label("[" + style.fixedWidth + "," + style.fixedHeight + "] " + style.name, GUILayout.MinWidth(200), GUILayout.Width(200), GUILayout.MaxHeight(s_Height)); GUILayout.Label(s_Text, style, GUILayout.MaxWidth(s_Width), GUILayout.MaxHeight(s_Height)); GUILayout.Space(150 - s_Width); GUILayout.Button(s_Text, style, GUILayout.MaxWidth(s_Width), GUILayout.MaxHeight(s_Height)); GUILayout.Space(150 - s_Width); EditorGUILayout.TextField(s_Text, style, GUILayout.MaxWidth(s_Width), GUILayout.MaxHeight(s_Height)); GUILayout.Space(150 - s_Width); s_IsSelected = GUILayout.Toggle(s_IsSelected, s_Text, style, GUILayout.MaxWidth(s_Width), GUILayout.MaxHeight(s_Height)); GUILayout.Space(150 - s_Width); EditorGUILayout.EndHorizontal(); } EditorGUILayout.EndVertical(); }
public void OnEnable() { font_atlas_prop = serializedObject.FindProperty("atlas"); font_material_prop = serializedObject.FindProperty("material"); font_normalStyle_prop = serializedObject.FindProperty("NormalStyle"); font_boldStyle_prop = serializedObject.FindProperty("BoldStyle"); font_italicStyle_prop = serializedObject.FindProperty("ItalicStyle"); m_fontInfo_prop = serializedObject.FindProperty("m_fontInfo"); m_glyphInfoList_prop = serializedObject.FindProperty("m_glyphInfoList"); m_kerningInfo_prop = serializedObject.FindProperty("m_kerningInfo"); m_kerningPair_prop = serializedObject.FindProperty("m_kerningPair"); //m_isGlyphInfoListExpanded_prop = serializedObject.FindProperty("isGlyphInfoListExpanded"); //m_isKerningTableExpanded_prop = serializedObject.FindProperty("isKerningTableExpanded"); m_fontAsset = target as TextMeshProFont; m_kerningTable = m_fontAsset.kerningInfo; // Find to location of the TextMesh Pro Asset Folder (as users may have moved it) string tmproAssetFolderPath = TMPro_EditorUtility.GetAssetLocation(); // GUI Skin if (EditorGUIUtility.isProSkin) mySkin = AssetDatabase.LoadAssetAtPath(tmproAssetFolderPath + "/GUISkins/TMPro_DarkSkin.guiskin", typeof(GUISkin)) as GUISkin; else mySkin = AssetDatabase.LoadAssetAtPath(tmproAssetFolderPath + "/GUISkins/TMPro_LightSkin.guiskin", typeof(GUISkin)) as GUISkin; if (mySkin != null) { SectionLabel = mySkin.FindStyle("Section Label"); GroupLabel = mySkin.FindStyle("Group Label"); SquareAreaBox85G = mySkin.FindStyle("Square Area Box (85 Grey)"); } }
GameObject targetGameObject; // The GameObject that this editor uses #endregion Fields #region Methods void OnEnable() { this.editorSkin = (GUISkin)(Resources.LoadAssetAtPath("Assets/Editor/EditorGUISkin.guiskin", typeof(GUISkin))); this.scriptOfOurType = (ProceduralRing)target; this.targetGameObject = (GameObject)this.scriptOfOurType.gameObject; }
void Start() { isShow = false; addMeshCollider = true; ui = (GUISkin) Resources.Load("uteForEditor/uteUI"); isCombineMesh = true; }
public static void StartNodeGUI () { defaultSkin = GUI.skin; if (nodeSkin == null) Init (true); GUI.skin = nodeSkin; }
// Use this for initialization void Start() { skin1 = Resources.Load("Menu/Menu") as GUISkin; // rect De la fenetre principale, poura fficher l'image de fond et le texte principal rectMenu = new Rect(4 * Screen.width / 5 , 2* Screen.height / 3, 400, 100); //rect du 1er bouton boutonJouer = gameObject.AddComponent<ButtonWithTooltip>(); boutonJouer.init("> Jouer", "Cliquez pour jouer !", new Rect(50, Screen.height / 4, 200, 50), 1500); boutonOptions = gameObject.AddComponent<ButtonWithTooltip>(); boutonOptions.init("> Options", "Options", new Rect(50, 2 * Screen.height / 4, 200, 50), 1500); boutonQuitter = gameObject.AddComponent<ButtonWithTooltip>(); boutonQuitter.init("> Quitter", "Retour sur le bureau", new Rect(50, 3 * Screen.height / 4, 200, 50), 1500); /* * Sous menu options : */ boutonOptionsGraphiques = gameObject.AddComponent<ButtonWithTooltip>(); boutonOptionsGraphiques.init("> Options graphiques", "No tooltuip", new Rect(50 + Screen.width/3, Screen.height / 4, 400, 50), 1500); boutonOptionsGraphiques.setDisplayed(true); boutonOptionsAudios = gameObject.AddComponent<ButtonWithTooltip>(); boutonOptionsAudios.init("> Options audios ", "No tooltuip", new Rect(50 + Screen.width / 3, Screen.height / 3, 400, 50), 1500); boutonOptionsAudios.setDisplayed(true); }
static public void Init() { init = true; window = (EditorPlusShortcuts)EditorWindow.GetWindow(typeof(EditorPlusShortcuts)); window.title = "Shortcuts"; window.minSize = new Vector2(StartMargin.x + ButtonSize.x + ButtonMargin.x, StartMargin.y + ButtonSize.y + ButtonMargin.y); widgetHost = new WidgetHost(window.position, StartMargin, ButtonMargin, ButtonSize, 0, 1f, true); ShortcutsSkinEdit = AssetDatabase.LoadMainAssetAtPath(EditorPlus.PlusPath + "UnityPlusSkinShortcutsEdit.guiskin") as GUISkin; if (Shortcuts == null) Shortcuts = new List<string>(); if (ShortcutsDefaults == null) ShortcutsDefaults = new List<string>(); if (ShortcutsCustoms == null) ShortcutsCustoms = new List<string>(); SaveDefaults(); #if EPlus_5 SaveDefaultsUI(); #endif LoadAllSaves(); LoadResources(); EditorPlus.OnSkinSwitched += LoadResources; }
public void drawShelfGroup(Event e, float yCoord, int shelfGroupIndex, Rect viewRect, NodeGraph currentNodeGraph, GUISkin viewSkin) { if (isExpanded) { groupRect = new Rect(5f, yCoord, viewRect.width - 10f, getHeight()); GUI.Box(groupRect, groupName, viewSkin.GetStyle(("shelf_group_bg"))); int hiddenNodes = 0; for (int i = 0; i < shelfNodes.Count; i++) { if (!shelfNodes[i].isHidden) { shelfNodes[i].shelfNodeRect = new Rect(10f, yCoord + 40f + (50f * (i - hiddenNodes)), viewRect.width - 20f, 40f); shelfNodes[i].drawNodeShelfGroupNode(e, yCoord, viewSkin); } else { hiddenNodes++; } } } else { groupRect = new Rect(5f, yCoord, viewRect.width - 10f, 40f); GUI.Box(groupRect, groupName, viewSkin.GetStyle(("shelf_group_bg"))); } ProcessEvent(e, currentNodeGraph); }
public bool OnGUI(GUISkin skin) { var changed = false; if (this.yearsArray == null || this.yearsArray.Length == 0) { var years = new List<string>(); years.Add("Any"); for (int i = 1900; i <= System.DateTime.Now.Year; ++i) { years.Add(i.ToString()); } this.yearsArray = years.ToArray(); } UnityEditor.EditorGUILayout.LabelField("Filter:", UnityEditor.EditorStyles.boldLabel); ME.CalendarGUI.DrawField("Date From", this.dateFrom, (date) => this.dateFrom = date); ME.CalendarGUI.DrawField("Date To", this.dateTo, (date) => this.dateTo = date); this.idFrom = UnityEditor.EditorGUILayout.LongField("User ID From", this.idFrom, skin.textField); this.idTo = UnityEditor.EditorGUILayout.LongField("User ID To", this.idTo, skin.textField); this.gender = (User.Gender)UnityEditor.EditorGUILayout.EnumPopup("Gender", this.gender); this.birthYearFrom = UnityEditor.EditorGUILayout.Popup("Birth Year From", this.birthYearFrom, this.yearsArray); this.birthYearTo = UnityEditor.EditorGUILayout.Popup("Birth Year To", this.birthYearTo, this.yearsArray); changed = GUI.changed; return changed; }
public ItemEditor(GUISkin guiSkin, MainWindowEditor data) { EditorName = "Item"; Init(guiSkin, data); LoadData(); }
public static void ApplySkin() { if (s_skin == null) { s_skin = AssetDatabase.LoadAssetAtPath("Editor/EditorSkin.guiskin", typeof(GUISkin)) as GUISkin; } GUI.skin = s_skin; }
static void GUISkin_settings(JSVCall vc) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.settings; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); }
public GoodTooltip(Vector2 pPosition, string pHeaderText, string pWarningText, string pBodyText) : base(pPosition) { instance = this; _headerText = pHeaderText; _warningText = pWarningText; _bodyText = pBodyText; /* _helpSignTop = (Texture)Resources.Load ("HelpSignTop"); _helpSignMiddle = (Texture)Resources.Load ("HelpSignMiddle"); _helpSignSelect = (Texture)Resources.Load ("HelpSignSelect"); _helpSignSelect2 = (Texture)Resources.Load ("HelpSignSelect2"); _helpSignBottom = (Texture)Resources.Load ("HelpSignBottom"); */ SetTexture("ToolTip"); _tooltipNormal = (Texture2D)Resources.Load ("ToolTip"); _tooltipFlipped = (Texture2D)Resources.Load ("ToolTipFlipped"); _skin = (GUISkin)Resources.Load ("BasicSkin"); Visible = false; RefreshNrOfSegments (); }
static public int get_box(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); pushValue(l, true); pushValue(l, self.box); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_verticalScrollbarDownButton(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); pushValue(l, true); pushValue(l, self.verticalScrollbarDownButton); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_horizontalScrollbarThumb(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); pushValue(l, true); pushValue(l, self.horizontalScrollbarThumb); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.GUISkin o; o = new UnityEngine.GUISkin(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_customStyles(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); UnityEngine.GUIStyle[] v; checkArray(l, 2, out v); self.customStyles = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_font(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); UnityEngine.Font v; checkType(l, 2, out v); self.font = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_verticalScrollbarDownButton(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); UnityEngine.GUIStyle v; checkType(l, 2, out v); self.verticalScrollbarDownButton = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_horizontalScrollbarThumb(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); UnityEngine.GUIStyle v; checkType(l, 2, out v); self.horizontalScrollbarThumb = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static void GUISkin_textField(JSVCall vc) { if (vc.bGet) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.textField; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.GUIStyle arg0 = (UnityEngine.GUIStyle)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; _this.textField = arg0; } }
static public int FindStyle(IntPtr l) { try { UnityEngine.GUISkin self = (UnityEngine.GUISkin)checkSelf(l); System.String a1; checkType(l, 2, out a1); var ret = self.FindStyle(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static void GUISkin_verticalScrollbarDownButton(JSVCall vc) { if (vc.bGet) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.verticalScrollbarDownButton; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.GUIStyle arg0 = (UnityEngine.GUIStyle)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; _this.verticalScrollbarDownButton = arg0; } }
static void GUISkin_horizontalScrollbarThumb(JSVCall vc) { if (vc.bGet) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.horizontalScrollbarThumb; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.GUIStyle arg0 = (UnityEngine.GUIStyle)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; _this.horizontalScrollbarThumb = arg0; } }
// fields // properties static void GUISkin_font(JSVCall vc) { if (vc.bGet) { UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; var result = _this.font; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.Font arg0 = (UnityEngine.Font)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.GUISkin _this = (UnityEngine.GUISkin)vc.csObj; _this.font = arg0; } }
internal static void CleanupRoots() { current = null; ms_Error = null; }
internal static void CleanupRoots() { s_Skin = null; }
internal static void DoSetSkin(GUISkin newSkin) { s_Skin = newSkin; newSkin.MakeCurrent(); }
private static Rect DoModalWindow(int id, Rect clientRect, WindowFunction func, GUIContent content, GUIStyle style, GUISkin skin) => throw new NotImplementedException();
private static Rect DoWindow(int id, Rect clientRect, WindowFunction func, GUIContent title, GUIStyle style, GUISkin skin, bool forceRectOnLayout) => throw new NotImplementedException();
internal static void CallWindowDelegate(WindowFunction func, int id, int instanceID, GUISkin _skin, int forceRect, float width, float height, GUIStyle style) => throw new NotImplementedException();
private static Rect Internal_DoModalWindow(int id, int instanceID, Rect clientRect, WindowFunction func, GUIContent content, GUIStyle style, GUISkin skin) { INTERNAL_CALL_Internal_DoModalWindow(id, instanceID, ref clientRect, func, content, style, skin, out Rect value); return(value); }
private static extern void INTERNAL_CALL_Internal_DoModalWindow(int id, int instanceID, ref Rect clientRect, WindowFunction func, GUIContent content, GUIStyle style, GUISkin skin, out Rect value);
private static Rect Internal_DoWindow(int id, int instanceID, Rect clientRect, WindowFunction func, GUIContent title, GUIStyle style, GUISkin skin, bool forceRectOnLayout) { INTERNAL_CALL_Internal_DoWindow(id, instanceID, ref clientRect, func, title, style, skin, forceRectOnLayout, out Rect value); return(value); }
private static extern void INTERNAL_CALL_Internal_DoWindow(int id, int instanceID, ref Rect clientRect, WindowFunction func, GUIContent title, GUIStyle style, GUISkin skin, bool forceRectOnLayout, out Rect value);