茶服更新脚本
This commit is contained in:
@@ -194,17 +194,31 @@ class R_Utils {
|
||||
// return null;
|
||||
// });
|
||||
|
||||
//绘制字符
|
||||
getroottable().DrawCodeCallBackFunc <- {};
|
||||
// //绘制字符
|
||||
// getroottable().DrawCodeCallBackFunc <- {};
|
||||
// Rindro_Haker.LoadHook(0x1206BD0, ["int", "int", "int", "pointer", "int", "void"],
|
||||
// function(args) {
|
||||
// // print("nut:" + format("%02x", args[3]));
|
||||
|
||||
// if (args[3]) {
|
||||
// // for (local i = 0; i< 10000; i++) {
|
||||
// local DrawCode = NativePointer((args[3])).readUnicodeString();
|
||||
// if (DrawCode in DrawCodeCallBackFunc)
|
||||
// DrawCodeCallBackFunc[DrawCode](args);
|
||||
// local DrawCode = NativePointer(args[3]).readUnicodeString();
|
||||
|
||||
// if (DrawCode.find("^1^") != null) {
|
||||
|
||||
// args[3] = Str_Ptr("AAAAAA");
|
||||
// args[2] = sq_RGBA(255, 0, 240, 255);;
|
||||
// return args;
|
||||
// }
|
||||
// else if (DrawCode.find("^2^") != null) {
|
||||
// print(DrawCode);
|
||||
|
||||
// args[3] = Str_Ptr("BBBBBB");
|
||||
// args[2] = sq_RGBA(200, 100, 20, 255);;
|
||||
// return args;
|
||||
// }
|
||||
// // if (DrawCode in DrawCodeCallBackFunc)
|
||||
// // DrawCodeCallBackFunc[DrawCode](args);
|
||||
// // }
|
||||
// }
|
||||
// return null;
|
||||
@@ -262,9 +276,9 @@ function Sq_DiscardItem(Item) {
|
||||
|
||||
//从exe获取字符串
|
||||
getroottable()["Sq_GetExeStr_Map"] <- {};
|
||||
function Sq_GetExeStr_Event(Index)
|
||||
{
|
||||
if(Index in getroottable()["Sq_GetExeStr_Map"]){
|
||||
|
||||
function Sq_GetExeStr_Event(Index) {
|
||||
if (Index in getroottable()["Sq_GetExeStr_Map"]) {
|
||||
return getroottable()["Sq_GetExeStr_Map"][Index](Index);
|
||||
}
|
||||
return Index;
|
||||
|
||||
Reference in New Issue
Block a user