新增Img类获取宽高
This commit is contained in:
parent
83e22e4649
commit
bdb6e79723
|
|
@ -22,6 +22,16 @@ class Rindro_Png {
|
|||
function DrawEx(X, Y, Model, Rgba, Xrate, Yrate) {
|
||||
L_Sq_CallFunc(0x11A97E0, "int", FFI_THISCALL, ["int", "int", "int", "int", "float", "float", "float", "int", "float", "float"], NativePointer(0x1B45B94).readInt(), X, Y, this.C_Object, Xrate, Yrate, Model, Rgba, 0, 0);
|
||||
}
|
||||
|
||||
function GetWidth()
|
||||
{
|
||||
return NativePointer(this.C_Object + 0x1C).readShort();
|
||||
}
|
||||
|
||||
function GetHeight()
|
||||
{
|
||||
return NativePointer(this.C_Object + 0x1E).readShort();
|
||||
}
|
||||
}
|
||||
class Rindro_Image {
|
||||
|
||||
|
|
@ -61,7 +71,8 @@ class Rindro_Image {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rindro_Image_GlobalMap <- {};
|
||||
Rindro_Image_GlobalMap["lenheartui"] <- Rindro_Image("interface/lenheartwindowcommon.img");
|
||||
/*
|
||||
local Png = TestImg.GetPng(0);
|
||||
Png.Draw(200, 200);
|
||||
|
|
|
|||
Loading…
Reference in New Issue