Prechádzať zdrojové kódy

Default mouse to on, add modal info about Node/Component creation for EA build

Josh Engebretson 10 rokov pred
rodič
commit
51171eec3a

+ 2 - 0
Data/AtomicPlayer/Resources/CoreData/AtomicModules/AtomicGame.js

@@ -10,6 +10,8 @@ function Game() {
 	this.input = Atomic.getInput();
     this.ui = Atomic.getUI();
 
+    this.input.setMouseVisible(true);
+
     if (Atomic.platform == "Android") {
         this.renderer.reuseShadowMaps = false;
         this.renderer.shadowQuality = Atomic.SHADOWQUALITY_LOW_16BIT;

+ 8 - 0
Source/AtomicEditor/Source/UI/UIHierarchyFrame.cpp

@@ -93,8 +93,16 @@ void HierarchyFrame::RefreshHierarchyList()
 
 bool HierarchyFrame::OnEvent(const TBWidgetEvent &ev)
 {
+    Editor* editor = GetSubsystem<Editor>();
     if (ev.type == EVENT_TYPE_CLICK)
     {
+        if (ev.target->GetID() == TBIDC("menu create"))
+        {
+
+            editor->PostModalInfo("Early Access - Not Implemented", "Node creation not implemented in this Early Access build");
+
+        }
+
         if (scene_.NotNull())
         {
             if (ev.target->GetID() == TBIDC("hierarchyList_"))

+ 10 - 0
Source/AtomicEditor/Source/UI/UIInspectorFrame.cpp

@@ -109,6 +109,16 @@ bool InspectorFrame::OnEvent(const TBWidgetEvent &ev)
 
     if (ev.type == EVENT_TYPE_CLICK)
     {
+        if (ev.target->GetID() == TBIDC("create popup"))
+        {
+            if (ev.ref_id == TBIDC("create component"))
+            {
+                Editor* editor = GetSubsystem<Editor>();
+                editor->PostModalInfo("Early Access - Not Implemented", "Component creation not implemented in this early access build");
+            }
+
+        }
+
         if (ev.target->GetID() == TBIDC("create button"))
         {
             if (TBMenuWindow *menu = new TBMenuWindow(ev.target, TBIDC("create popup")))