mirror of https://github.com/adamdruppe/arsd.git
fix for new minigui things
This commit is contained in:
parent
97eb7e43f9
commit
f14befa028
|
@ -78,6 +78,8 @@ module arsd.minigui_xml;
|
||||||
public import arsd.minigui;
|
public import arsd.minigui;
|
||||||
public import arsd.minigui : Event;
|
public import arsd.minigui : Event;
|
||||||
|
|
||||||
|
import arsd.textlayouter;
|
||||||
|
|
||||||
import arsd.dom;
|
import arsd.dom;
|
||||||
|
|
||||||
import std.conv;
|
import std.conv;
|
||||||
|
@ -255,6 +257,8 @@ void appendMiniguiModule(alias Module, string prefix = null)()
|
||||||
{
|
{
|
||||||
params[idx] = Color.fromString(*arg);
|
params[idx] = Color.fromString(*arg);
|
||||||
}
|
}
|
||||||
|
else static if(is(typeof(param) == TextLayouter))
|
||||||
|
params[idx] = null;
|
||||||
else
|
else
|
||||||
params[idx] = to!(typeof(param))(*arg);
|
params[idx] = to!(typeof(param))(*arg);
|
||||||
}
|
}
|
||||||
|
@ -265,7 +269,7 @@ void appendMiniguiModule(alias Module, string prefix = null)()
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
params[$-1] = parent;
|
params[$-1] = cast(typeof(params[$-1])) parent;
|
||||||
|
|
||||||
auto member = new Member(params);
|
auto member = new Member(params);
|
||||||
widget = member;
|
widget = member;
|
||||||
|
|
Loading…
Reference in New Issue