Add Alot of stuff, Computer, repairStation, Whole game, Many things!
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
|
||||
<ui:Template name="SellEntry" src="project://database/Assets/HUD/ComputerScreen/SellEntry.uxml?fileID=9197481963319205126&guid=21f89b660ed43af43ae41053197365d0&type=3#SellEntry" />
|
||||
<ui:VisualElement style="flex-grow: 1; background-color: rgb(255, 255, 255); width: 75%; align-self: center; margin-top: 50px; margin-bottom: 50px; flex-direction: row;">
|
||||
<ui:VisualElement name="Doeze" style="flex-grow: 1; background-color: rgb(255, 255, 255); width: 75%; align-self: center; margin-top: 50px; margin-bottom: 50px; flex-direction: row;">
|
||||
<ui:Instance template="SellEntry" name="SellEntry" />
|
||||
<ui:Instance template="SellEntry" name="SellEntry" />
|
||||
<ui:Instance template="SellEntry" name="SellEntry" />
|
||||
|
||||
14
Assets/HUD/ComputerScreen/ComputerScreenController.cs
Normal file
14
Assets/HUD/ComputerScreen/ComputerScreenController.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
public class ComputerScreenController : MonoBehaviour {
|
||||
private UIDocument _uiDocument;
|
||||
|
||||
private void OnEnable() {
|
||||
_uiDocument = GetComponent<UIDocument>();
|
||||
var root = _uiDocument.rootVisualElement;
|
||||
}
|
||||
}
|
||||
11
Assets/HUD/ComputerScreen/ComputerScreenController.cs.meta
Normal file
11
Assets/HUD/ComputerScreen/ComputerScreenController.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20f14f6fae9591d42ba3d72a6cdf91b1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -2,6 +2,7 @@
|
||||
<ui:VisualElement name="VisualElement" style="flex-grow: 1; width: initial; margin-top: 30px; margin-right: 30px; margin-bottom: 30px; margin-left: 30px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px;">
|
||||
<ui:Label tabindex="-1" text="ITEMNAME" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ItemName" style="align-self: auto; -unity-text-align: upper-center; font-size: 70%; margin-top: 15px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px;" />
|
||||
<ui:VisualElement name="ItemImage" style="flex-grow: 1; width: auto; height: auto; background-image: url("project://database/Assets/HUD/ComputerScreen/prototype.png?fileID=2800000&guid=ad0f7eac80567534ab59a2864d336793&type=3#prototype"); -unity-background-scale-mode: scale-to-fit;" />
|
||||
<ui:Label tabindex="-1" text="Price: 2 barkie" parse-escape-sequences="true" display-tooltip-when-elided="true" name="PriceLabel" style="align-items: center; align-self: auto; -unity-text-align: upper-center; font-size: 43px;" />
|
||||
<ui:Button text="Buy" parse-escape-sequences="true" display-tooltip-when-elided="true" name="BuyButton" style="margin-top: 50px; margin-bottom: 50px; padding-bottom: 20px; padding-top: 20px; margin-right: 25px; margin-left: 25px; font-size: 54px;" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
|
||||
Reference in New Issue
Block a user