armory3d / armory

3D Engine with Blender Integration
https://armory3d.org/engine
zlib License
3.07k stars 316 forks source link

Canvas - Placing anything e.g. Text in Canvas causes Warnings when compiling. #2868

Closed Dzynek closed 1 year ago

Dzynek commented 1 year ago

Thank you for contributing to Armory!

Description

D:\Armory3D\SDK\ArmorySDK2304\armsdk\armory\Sources/armory/ui/Canvas.hx:126: characters 5-20 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\armory\Sources/armory/ui/Canvas.hx:138: characters 5-20 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\armory\Sources/armory/ui/Canvas.hx:295: characters 5-17 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\armory\Sources/armory/ui/Canvas.hx:297: characters 5-20 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:60: characters 4-17 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:147: characters 4-17 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:258: characters 12-37 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:263: characters 9-34 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.

D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:281: characters 10-35 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.
D:\Armory3D\SDK\ArmorySDK2304\armsdk\Kha\Sources/kha/graphics2/GraphicsExtension.hx:285: characters 10-35 : Warning : GraphicsExtension will be removed. If you want to use it, simply copy it into your own project and then remove this message.

Placing anything e.g. Text in Canvas causes Warnings when compiling.

To Reproduce Create a Canvas and insert anything.

Expected behavior Why am I getting these warnings?

System Blender: 3.3.6 Armory: 2023.04 (update SDK) OS: Windows 11 64 pl Graphics card: Geforce GTX 2060 Super

Test File

CanvasWarnings.zip

knowledgenude commented 1 year ago

It seems to be just deprecation warnings that will be solved by updating the Canvas class, so don't worry about that. There is not wrong on your side.

MoritzBrueckner commented 1 year ago

Since this most likely should be fixed in Zui I opened an issue there: https://github.com/armory3d/zui/issues/163. If Lubos doesn't want to fix it in Zui (e.g. because he seems to be moving Zui to C in Krom for Armortools?) we can reopen this issue.