small fixes
This commit is contained in:
@@ -48,7 +48,7 @@ class PD_API Container {
|
|||||||
*/
|
*/
|
||||||
Container(const fvec4& box)
|
Container(const fvec4& box)
|
||||||
: pos(fvec2(box.x, box.y)), size(fvec2(box.z - box.x, box.w - box.y)) {}
|
: pos(fvec2(box.x, box.y)), size(fvec2(box.z - box.x, box.w - box.y)) {}
|
||||||
~Container() = default;
|
virtual ~Container() = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init Function Required by every Object that uses
|
* Init Function Required by every Object that uses
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
namespace PD {
|
namespace PD {
|
||||||
|
|
||||||
PD_API UI7::IO::IO() : DeltaStats(60), CurrentViewPort("", 0) {
|
PD_API UI7::IO::IO() : CurrentViewPort("", 0), DeltaStats(60) {
|
||||||
/** Probably not the best solution i guess */
|
/** Probably not the best solution i guess */
|
||||||
// CurrentViewPort =
|
// CurrentViewPort =
|
||||||
// ViewPort::New("Default", ivec4(ivec2(0, 0), pCtx.Gfx()->ViewPort));
|
// ViewPort::New("Default", ivec4(ivec2(0, 0), pCtx.Gfx()->ViewPort));
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
namespace PD {
|
namespace PD {
|
||||||
namespace UI7 {
|
namespace UI7 {
|
||||||
Menu::Menu(const ID& id, IO& io) : pIO(io), pID(id), pLayout(id, io) {
|
Menu::Menu(const ID& id, IO& io) : pLayout(id, io), pIO(io), pID(id) {
|
||||||
TitleBarHeight = pIO.FontScale * pIO.Font->PixelHeight + pIO.MenuPadding.y;
|
TitleBarHeight = pIO.FontScale * pIO.Font->PixelHeight + pIO.MenuPadding.y;
|
||||||
pLayout.WorkRect.y += TitleBarHeight;
|
pLayout.WorkRect.y += TitleBarHeight;
|
||||||
pLayout.Flags |= UI7LayoutFlags_UseClipRect;
|
pLayout.Flags |= UI7LayoutFlags_UseClipRect;
|
||||||
|
|||||||
+1
-1
@@ -158,7 +158,7 @@ PD_API void Context::AboutMenu(bool* show) {
|
|||||||
if (auto m = BeginMenu("About UI7", UI7MenuFlags_Scrolling, show)) {
|
if (auto m = BeginMenu("About UI7", UI7MenuFlags_Scrolling, show)) {
|
||||||
m->Label("Palladium UI7 " + GetVersion());
|
m->Label("Palladium UI7 " + GetVersion());
|
||||||
m->Separator();
|
m->Separator();
|
||||||
m->Label("(c) 2023-2025 René Amthor");
|
m->Label("(c) 2023-2026 René Amthor");
|
||||||
m->Label("UI7 is licensed under the MIT License.");
|
m->Label("UI7 is licensed under the MIT License.");
|
||||||
m->Label("See LICENSE for more information.");
|
m->Label("See LICENSE for more information.");
|
||||||
static bool show_build;
|
static bool show_build;
|
||||||
|
|||||||
Reference in New Issue
Block a user