mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-22 08:11:47 -05:00
ui notes
This commit is contained in:
parent
5dc979ff8f
commit
8e8ed7365e
2 changed files with 11 additions and 16 deletions
|
@ -35,24 +35,17 @@ namespace OpenTS2.Engine.Tests
|
||||||
|
|
||||||
void CreateUI()
|
void CreateUI()
|
||||||
{
|
{
|
||||||
try
|
var settings = Settings.Get();
|
||||||
|
settings.Language = Language;
|
||||||
|
foreach (var instance in _instances)
|
||||||
{
|
{
|
||||||
var settings = Settings.Get();
|
Destroy(instance.gameObject);
|
||||||
settings.Language = Language;
|
|
||||||
foreach (var instance in _instances)
|
|
||||||
{
|
|
||||||
Destroy(instance.gameObject);
|
|
||||||
}
|
|
||||||
_instances.Clear();
|
|
||||||
var contentProvider = ContentProvider.Get();
|
|
||||||
var key = new ResourceKey(Convert.ToUInt32(Key, 16), 0xA99D8A11, TypeIDs.UI);
|
|
||||||
var uiLayout = contentProvider.GetAsset<UILayout>(key);
|
|
||||||
_instances.AddRange(uiLayout.Instantiate(UIManager.MainCanvas.transform));
|
|
||||||
}
|
|
||||||
catch(Exception e)
|
|
||||||
{
|
|
||||||
Debug.LogError(e);
|
|
||||||
}
|
}
|
||||||
|
_instances.Clear();
|
||||||
|
var contentProvider = ContentProvider.Get();
|
||||||
|
var key = new ResourceKey(Convert.ToUInt32(Key, 16), 0xA99D8A11, TypeIDs.UI);
|
||||||
|
var uiLayout = contentProvider.GetAsset<UILayout>(key);
|
||||||
|
_instances.AddRange(uiLayout.Instantiate(UIManager.MainCanvas.transform));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
|
2
Notes/ui ids.txt
Normal file
2
Notes/ui ids.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
settings: 0x49001028
|
||||||
|
audio settings: 0x49060F01
|
Loading…
Reference in a new issue