heehee
This commit is contained in:
@@ -50,8 +50,11 @@ typedef UIContextMenuOption = {
|
||||
|
||||
class UIContextMenuOptionSpr extends UISpliceSprite {
|
||||
public var label:UIText;
|
||||
public function new(x:Float, y:Float, t:String) {
|
||||
label = new UIText(20, 2, 0, t);
|
||||
public var option:UIContextMenuOption;
|
||||
|
||||
public function new(x:Float, y:Float, option:UIContextMenuOption) {
|
||||
label = new UIText(20, 2, 0, option.label);
|
||||
this.option = option;
|
||||
|
||||
super(x, y, label.frameWidth + 22, label.frameHeight + 4, 'editors/ui/button');
|
||||
members.push(label);
|
||||
|
||||
@@ -26,7 +26,6 @@ import funkin.windows.WindowsAPI.MessageBoxIcon;
|
||||
#include <wingdi.h>
|
||||
#include <shellapi.h>
|
||||
#include <uxtheme.h>
|
||||
#include <ShellScalingApi.h>
|
||||
|
||||
#define SAFE_RELEASE(punk) \\
|
||||
if ((punk) != NULL) \\
|
||||
@@ -177,7 +176,6 @@ class WinAPI {
|
||||
|
||||
@:functionCode('
|
||||
SetProcessDPIAware();
|
||||
// SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE);
|
||||
')
|
||||
public static function registerAsDPICompatible() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user