فهرست منبع

Added a square Urho icon (same as the Android icon) to use for the samples on desktop.

Lasse Öörni 12 سال پیش
والد
کامیت
b496c5a012
4فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      Bin/Data/LuaScripts/Utilities/Sample.lua
  2. 1 1
      Bin/Data/Scripts/Utilities/Sample.as
  3. BIN
      Bin/Data/Textures/UrhoIcon.png
  4. 1 1
      Source/Samples/Sample.inl

+ 1 - 1
Bin/Data/LuaScripts/Utilities/Sample.lua

@@ -64,7 +64,7 @@ function CreateLogo()
 end
 end
 
 
 function SetWindowTitleAndIcon()
 function SetWindowTitleAndIcon()
-    local icon = cache:GetResource("Image", "Textures/LogoLarge.png")
+    local icon = cache:GetResource("Image", "Textures/UrhoIcon.png")
     graphics:SetWindowIcon(icon)
     graphics:SetWindowIcon(icon)
     graphics.windowTitle = "Urho3D Sample"
     graphics.windowTitle = "Urho3D Sample"
 end
 end

+ 1 - 1
Bin/Data/Scripts/Utilities/Sample.as

@@ -66,7 +66,7 @@ void CreateLogo()
 
 
 void SetWindowTitleAndIcon()
 void SetWindowTitleAndIcon()
 {
 {
-    Image@ icon = cache.GetResource("Image", "Textures/LogoLarge.png");
+    Image@ icon = cache.GetResource("Image", "Textures/UrhoIcon.png");
     graphics.windowIcon = icon;
     graphics.windowIcon = icon;
     graphics.windowTitle = "Urho3D Sample";
     graphics.windowTitle = "Urho3D Sample";
 }
 }

BIN
Bin/Data/Textures/UrhoIcon.png


+ 1 - 1
Source/Samples/Sample.inl

@@ -111,7 +111,7 @@ void Sample::SetWindowTitleAndIcon()
 {
 {
     ResourceCache* cache = GetSubsystem<ResourceCache>();
     ResourceCache* cache = GetSubsystem<ResourceCache>();
     Graphics* graphics = GetSubsystem<Graphics>();
     Graphics* graphics = GetSubsystem<Graphics>();
-    Image* icon = cache->GetResource<Image>("Textures/LogoLarge.png");
+    Image* icon = cache->GetResource<Image>("Textures/UrhoIcon.png");
     graphics->SetWindowIcon(icon);
     graphics->SetWindowIcon(icon);
     graphics->SetWindowTitle("Urho3D Sample");
     graphics->SetWindowTitle("Urho3D Sample");
 }
 }