mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 00:07:15 +00:00
convert logo
This commit is contained in:
parent
b2ee510576
commit
d0138fcca7
2 changed files with 74 additions and 13 deletions
|
@ -2147,6 +2147,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 7154984565954268134}
|
||||
- {fileID: 8593699161208457630}
|
||||
- {fileID: 5189365016541958362}
|
||||
m_Father: {fileID: 4649684838142242}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -4378,6 +4379,78 @@ MonoBehaviour:
|
|||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
--- !u!1 &5444999671382469206
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5189365016541958362}
|
||||
- component: {fileID: 4305294239432616759}
|
||||
- component: {fileID: 620264356712516268}
|
||||
m_Layer: 5
|
||||
m_Name: Logo
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5189365016541958362
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5444999671382469206}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8427225095601868331}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 256, y: 256}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4305294239432616759
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5444999671382469206}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &620264356712516268
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5444999671382469206}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Texture: {fileID: 2800000, guid: 7ba03d38f2c9d483eb98097a1990d3ec, type: 3}
|
||||
m_UVRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
--- !u!1 &5641930343991738703
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -5637,7 +5710,7 @@ GameObject:
|
|||
- component: {fileID: 8945428129181930115}
|
||||
- component: {fileID: 87587368906071952}
|
||||
m_Layer: 5
|
||||
m_Name: Panel
|
||||
m_Name: ButtonsContainer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
|
|
@ -19,8 +19,6 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
public Color openedWindowTextColor = Color.green;
|
||||
|
||||
public bool drawLogo = false;
|
||||
|
||||
private static GUILayoutOption[] s_buttonOptions = new GUILayoutOption[0];
|
||||
public static GUILayoutOption[] ButtonLayoutOptions { get { return s_buttonOptions; } }
|
||||
|
||||
|
@ -46,16 +44,6 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
// draw main menu gui
|
||||
|
||||
// logo
|
||||
|
||||
if (this.drawLogo)
|
||||
{
|
||||
if (GameManager.Instance.logoTexture != null)
|
||||
{
|
||||
GUI.DrawTexture (GUIUtils.GetCenteredRect (GameManager.Instance.logoTexture.GetSize ()), GameManager.Instance.logoTexture);
|
||||
}
|
||||
}
|
||||
|
||||
// draw menu entries at bottom of screen
|
||||
|
||||
s_buttonOptions = new GUILayoutOption[]{ GUILayout.MinWidth(minButtonWidth), GUILayout.MinHeight(minButtonHeight) };
|
||||
|
|
Loading…
Reference in a new issue