- Bring text to text buttons (not fully working)

- Refactoring of unity element creation
- copy Vocaluxe.UI.dll to unity assets automatically
This commit is contained in:
lukeIam committed 2018-09-07 17:12:16 +02:00
1 parent 4373f82935
commit c6d221d6c0
8 files changed
+21 -149

No files matched your search

+4 -1
View File
@@ -105,7 +105,7 @@ public class ScreenHandler : MonoBehaviour
button.GetComponent<Image>().color = Color.green;
var buttonText = button.GetComponentInChildren<Text>().gameObject;
SetProperties((CUiElementText)buttonInfo.AsQueryable().FirstOrDefault(x => x is CUiElementText), buttonText);
SetProperties((CUiElementText)buttonInfo.FirstOrDefault(x => x is CUiElementText), buttonText);
}
private GameObject CreateElement(CUiElementText textInfo)
@@ -117,6 +117,9 @@ public class ScreenHandler : MonoBehaviour
private void SetProperties(CUiElementText textInfo, GameObject text)
{
var textComponent = text.GetComponent<Text>();
// Add text to the text component
textComponent.text = textInfo.Controller.Text;
PositionElement(textInfo, text);
}
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: ee53898f2ecb9f947bf75286bc93aee0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,96 +0,0 @@
fileFormatVersion: 2
guid: c159d6aca28a19847ace6c3ea7bfad8c
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
- first:
'': Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux: 0
Exclude Linux64: 0
Exclude LinuxUniversal: 0
Exclude OSXUniversal: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Facebook: Win
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: Linux
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: LinuxUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
settings:
CPU: AnyCPU
DontProcess: false
PlaceholderPath:
SDK: AnySDK
ScriptingBackend: AnyScriptingBackend
userData:
assetBundleName:
assetBundleVariant: