content stringlengths 5 1.05M |
|---|
require('lualine').setup({
options = {
icons_enabled = true,
theme = 'onedark',
},
extensions = {
'nvim-tree',
},
})
|
package.name = "drawstuff"
package.language = "c++"
package.objdir = "obj/drawstuff"
package.links = {}
-- Append a "d" to the debug version of the libraries
for k,v in ipairs(project.configs) do
if (string.find(v, "Debug") ~= nil) then
package.config[v].target = "drawstuffd"
end
end
-- Output is placed in a directory named for the target toolset.
package.path = options["target"]
-- Package Build Settings
local dll_defines =
{
"DS_DLL",
"USRDLL"
}
local lib_defines =
{
"DS_LIB"
}
if (not options["enable-shared-only"]) then
package.config["DebugSingleLib"].kind = "lib"
package.config["ReleaseSingleLib"].kind = "lib"
table.insert(package.config["DebugSingleLib"].defines, lib_defines)
table.insert(package.config["ReleaseSingleLib"].defines, lib_defines)
table.insert(package.config["DebugSingleLib"].defines, "dSINGLE")
table.insert(package.config["ReleaseSingleLib"].defines, "dSINGLE")
package.config["DebugDoubleLib"].kind = "lib"
package.config["ReleaseDoubleLib"].kind = "lib"
table.insert(package.config["DebugDoubleLib"].defines, lib_defines)
table.insert(package.config["ReleaseDoubleLib"].defines, lib_defines)
table.insert(package.config["DebugDoubleLib"].defines, "dDOUBLE")
table.insert(package.config["ReleaseDoubleLib"].defines, "dDOUBLE")
end
if (not options["enable-static-only"]) then
package.config["DebugSingleDLL"].kind = "dll"
package.config["ReleaseSingleDLL"].kind = "dll"
table.insert(package.config["DebugSingleDLL"].defines, dll_defines)
table.insert(package.config["ReleaseSingleDLL"].defines, dll_defines)
table.insert(package.config["DebugSingleDLL"].defines, "dSINGLE")
table.insert(package.config["ReleaseSingleDLL"].defines, "dSINGLE")
package.config["DebugDoubleDLL"].kind = "dll"
package.config["ReleaseDoubleDLL"].kind = "dll"
table.insert(package.config["DebugDoubleDLL"].defines, dll_defines)
table.insert(package.config["ReleaseDoubleDLL"].defines, dll_defines)
table.insert(package.config["DebugDoubleDLL"].defines, "dDOUBLE")
table.insert(package.config["ReleaseDoubleDLL"].defines, "dDOUBLE")
end
package.includepaths =
{
"../../include",
"../../ode/src"
}
-- disable VS2005 CRT security warnings
if (options["target"] == "vs2005") then
table.insert(package.defines, "_CRT_SECURE_NO_DEPRECATE")
end
-- Build Flags
package.config["DebugSingleLib"].buildflags = { }
package.config["DebugSingleDLL"].buildflags = { }
package.config["ReleaseSingleDLL"].buildflags = { "optimize-speed", "no-symbols", "no-frame-pointer" }
package.config["ReleaseSingleLib"].buildflags = { "optimize-speed", "no-symbols", "no-frame-pointer" }
package.config["DebugDoubleLib"].buildflags = { }
package.config["DebugDoubleDLL"].buildflags = { }
package.config["ReleaseDoubleDLL"].buildflags = { "optimize-speed", "no-symbols", "no-frame-pointer" }
package.config["ReleaseDoubleLib"].buildflags = { "optimize-speed", "no-symbols", "no-frame-pointer" }
if (options.target == "vs6" or options.target == "vs2002" or options.target == "vs2003") then
for k,v in ipairs(project.configs) do
if (string.find(v, "Lib") ~= nil) then
table.insert(package.config[v].buildflags, "static-runtime")
end
end
end
-- Libraries
local windows_libs =
{
"user32",
"opengl32",
"glu32",
"winmm",
"gdi32"
}
local x11_libs =
{
"X11",
"GL",
"GLU"
}
if (windows) then
table.insert(package.links, windows_libs)
else
table.insert(package.links, x11_libs)
end
-- Files
package.files =
{
matchfiles("../../include/drawstuff/*.h"),
"../../drawstuff/src/internal.h",
"../../drawstuff/src/drawstuff.cpp"
}
if (windows) then
table.insert(package.defines, "WIN32")
table.insert(package.files, "../../drawstuff/src/resource.h")
table.insert(package.files, "../../drawstuff/src/resources.rc")
table.insert(package.files, "../../drawstuff/src/windows.cpp")
else
table.insert(package.files, "../../drawstuff/src/x11.cpp")
end
|
--!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- Copyright (C) 2015-present, TBOOX Open Source Group.
--
-- @author ruki
-- @file client.lua
--
-- imports
import("core.base.bytes")
import("core.base.base64")
import("core.base.socket")
import("core.base.option")
import("core.base.scheduler")
import("core.project.config", {alias = "project_config"})
import("lib.detect.find_tool")
import("utils.archive.archive", {alias = "archive_files"})
import("private.service.config")
import("private.service.message")
import("private.service.client")
import("private.service.stream", {alias = "socket_stream"})
import("private.service.remote_build.filesync", {alias = "new_filesync"})
import("private.service.remote_build.environment")
-- define module
local remote_build_client = remote_build_client or client()
local super = remote_build_client:class()
-- init client
function remote_build_client:init()
super.init(self)
-- init address
local address = assert(config.get("remote_build.client.connect"), "config(remote_build.client.connect): not found!")
super.address_set(self, address)
-- get project directory
local projectdir = os.projectdir()
local projectfile = os.projectfile()
if projectfile and os.isfile(projectfile) and projectdir then
self._PROJECTDIR = projectdir
self._WORKDIR = path.join(project_config.directory(), "remote_build")
else
raise("we need enter a project directory with xmake.lua first!")
end
-- init filesync
local filesync = new_filesync(self:projectdir(), path.join(self:workdir(), "manifest.txt"))
filesync:ignorefiles_add(".git/**")
filesync:ignorefiles_add(".xmake/**")
self._FILESYNC = filesync
-- check environment
environment.check(false)
end
-- get class
function remote_build_client:class()
return remote_build_client
end
-- connect to the remote server
function remote_build_client:connect()
if self:is_connected() then
print("%s: has been connected!", self)
return
end
-- we need user authorization?
local token = config.get("remote_build.client.token")
if not token and self:user() then
-- get user password
cprint("Please input user ${bright}%s${clear} password:", self:user())
io.flush()
local pass = (io.read() or ""):trim()
assert(pass ~= "", "password is empty!")
-- compute user authorization
token = base64.encode(self:user() .. ":" .. pass)
token = hash.md5(bytes(token))
end
-- do connect
local addr = self:addr()
local port = self:port()
local sock = assert(socket.connect(addr, port), "%s: server unreachable!", self)
local session_id = self:session_id()
local ok = false
local errors
print("%s: connect %s:%d ..", self, addr, port)
if sock then
local stream = socket_stream(sock)
if stream:send_msg(message.new_connect(session_id, {token = token})) and stream:flush() then
local msg = stream:recv_msg()
if msg then
vprint(msg:body())
if msg:success() then
ok = true
else
errors = msg:errors()
end
end
end
end
if ok then
print("%s: connected!", self)
else
print("%s: connect %s:%d failed, %s", self, addr, port, errors or "unknown")
end
-- update status
local status = self:status()
status.addr = addr
status.port = port
status.token = token
status.connected = ok
status.session_id = session_id
self:status_save()
-- sync files
if ok then
self:sync()
end
end
-- disconnect server
function remote_build_client:disconnect()
if not self:is_connected() then
print("%s: has been disconnected!", self)
return
end
local addr = self:addr()
local port = self:port()
local sock = socket.connect(addr, port)
local session_id = self:session_id()
local errors
local ok = false
print("%s: disconnect %s:%d ..", self, addr, port)
if sock then
local stream = socket_stream(sock)
if stream:send_msg(message.new_disconnect(session_id, {token = self:token()})) and stream:flush() then
local msg = stream:recv_msg()
if msg then
vprint(msg:body())
if msg:success() then
ok = true
else
errors = msg:errors()
end
end
end
else
-- server unreachable, but we still disconnect it.
wprint("%s: server unreachable!", self)
ok = true
end
if ok then
print("%s: disconnected!", self)
else
print("%s: disconnect %s:%d failed, %s", self, addr, port, errors or "unknown")
end
-- update status
local status = self:status()
status.token = nil
status.connected = not ok
self:status_save()
end
-- sync server files
function remote_build_client:sync()
assert(self:is_connected(), "%s: has been not connected!", self)
local addr = self:addr()
local port = self:port()
local sock = assert(socket.connect(addr, port), "%s: server unreachable!", self)
local session_id = self:session_id()
local errors
local ok = false
local diff_files
local archive_diff_file
print("%s: sync files in %s:%d ..", self, addr, port)
while sock do
-- diff files
local stream = socket_stream(sock)
diff_files, errors = self:_diff_files(stream)
if not diff_files then
break
end
if not diff_files.changed then
ok = true
break
end
-- archive diff files
print("Archiving files ..")
archive_diff_file, errors = self:_archive_diff_files(diff_files)
if not archive_diff_file or not os.isfile(archive_diff_file) then
break
end
-- do sync
cprint("Uploading files with ${bright}%d${clear} bytes ..", os.filesize(archive_diff_file))
local send_ok = false
if stream:send_msg(message.new_sync(session_id, diff_files, {token = self:token()})) and stream:flush() then
if stream:send_file(archive_diff_file) and stream:flush() then
send_ok = true
end
end
if not send_ok then
errors = "send files failed"
break
end
-- sync ok
local msg = stream:recv_msg()
if msg and msg:success() then
vprint(msg:body())
ok = true
elseif msg then
errors = msg:errors()
end
break
end
if archive_diff_file then
os.tryrm(archive_diff_file)
end
if ok then
print("%s: sync files ok!", self)
else
print("%s: sync files failed in %s:%d, %s", self, addr, port, errors or "unknown")
end
end
-- clean server files
function remote_build_client:clean()
assert(self:is_connected(), "%s: has been not connected!", self)
local addr = self:addr()
local port = self:port()
local sock = assert(socket.connect(addr, port), "%s: server unreachable!", self)
local session_id = self:session_id()
local errors
local ok = false
print("%s: clean files in %s:%d ..", self, addr, port)
local stream = socket_stream(sock)
if stream:send_msg(message.new_clean(session_id, {token = self:token()})) and stream:flush() then
local msg = stream:recv_msg()
if msg then
vprint(msg:body())
if msg:success() then
ok = true
else
errors = msg:errors()
end
end
end
if ok then
print("%s: clean files ok!", self)
else
print("%s: clean files failed in %s:%d, %s", self, addr, port, errors or "unknown")
end
end
-- run command
function remote_build_client:runcmd(program, argv)
assert(self:is_connected(), "%s: has been not connected!", self)
local addr = self:addr()
local port = self:port()
local sock = assert(socket.connect(addr, port), "%s: server unreachable!", self)
local session_id = self:session_id()
local errors
local ok = false
local buff = bytes(8192)
local command = os.args(table.join(program, argv))
local leftstr = ""
cprint("%s: run ${bright}%s${clear} in %s:%d ..", self, command, addr, port)
local stream = socket_stream(sock)
if stream:send_msg(message.new_runcmd(session_id, program, argv, {token = self:token()})) and stream:flush() then
local stdin_opt = {stop = false}
scheduler.co_start(self._read_stdin, self, stream, stdin_opt)
while true do
local msg = stream:recv_msg()
if msg then
if msg:is_data() then
local data = stream:recv(buff, msg:body().size)
if data then
leftstr = leftstr .. data:str()
local pos = leftstr:lastof("\n", true)
if pos then
cprint(leftstr:sub(1, pos - 1))
leftstr = leftstr:sub(pos + 1)
end
else
errors = string.format("recv output data(%d) failed!", msg:body().size)
break
end
else
if msg:success() then
ok = true
else
errors = msg:errors()
end
break
end
else
break
end
end
stdin_opt.stop = true
end
if #leftstr > 0 then
cprint(leftstr)
end
if ok then
print("%s: run command ok!", self)
else
print("%s: run command failed in %s:%d, %s", self, addr, port, errors or "unknown")
end
io.flush()
end
-- is connected?
function remote_build_client:is_connected()
return self:status().connected
end
-- get the status
function remote_build_client:status()
local status = self._STATUS
local statusfile = self:statusfile()
if not status then
if os.isfile(statusfile) then
status = io.load(statusfile)
end
status = status or {}
self._STATUS = status
end
return status
end
-- save status
function remote_build_client:status_save()
io.save(self:statusfile(), self:status())
end
-- get the status file
function remote_build_client:statusfile()
return path.join(self:workdir(), "status.txt")
end
-- get the project directory
function remote_build_client:projectdir()
return self._PROJECTDIR
end
-- get working directory
function remote_build_client:workdir()
return self._WORKDIR
end
-- get user token
function remote_build_client:token()
return self:status().token
end
-- get the session id, only for unique project
function remote_build_client:session_id()
return self:status().session_id or hash.uuid():split("-", {plain = true})[1]:lower()
end
-- get filesync
function remote_build_client:_filesync()
return self._FILESYNC
end
-- diff server files
function remote_build_client:_diff_files(stream)
assert(self:is_connected(), "%s: has been not connected!", self)
print("Scanning files ..")
local filesync = self:_filesync()
local manifest, filecount = filesync:snapshot()
local session_id = self:session_id()
local count = 0
local result, errors
cprint("Comparing ${bright}%d${clear} files ..", filecount)
if stream:send_msg(message.new_diff(session_id, manifest, {token = self:token()})) and stream:flush() then
local msg = stream:recv_msg()
if msg and msg:success() then
result = msg:body().manifest
if result then
for _, fileitem in ipairs(result.inserted) do
if count < 8 then
cprint(" ${green}[+]: ${clear}%s", fileitem)
count = count + 1
end
end
for _, fileitem in ipairs(result.modified) do
if count < 8 then
cprint(" ${yellow}[*]: ${clear}%s", fileitem)
count = count + 1
end
end
for _, fileitem in ipairs(result.removed) do
if count < 8 then
cprint(" ${red}[-]: ${clear}%s", fileitem)
count = count + 1
end
end
if count >= 8 then
print(" ...")
end
end
elseif msg then
errors = msg:errors()
end
end
cprint("${bright}%d${clear} files has been changed!", count)
return result, errors
end
-- archive diff files
function remote_build_client:_archive_diff_files(diff_files)
local archivefile = os.tmpfile() .. ".zip"
local archivedir = path.directory(archivefile)
if not os.isdir(archivedir) then
os.mkdir(archivedir)
end
local filelist = {}
for _, fileitem in ipairs(diff_files.inserted) do
table.insert(filelist, fileitem)
end
for _, fileitem in ipairs(diff_files.modified) do
table.insert(filelist, fileitem)
end
local ok = archive_files(archivefile, filelist, {curdir = self:projectdir()})
if not ok then
return nil, "archive files failed!"
end
return archivefile
end
-- read stdin data
function remote_build_client:_read_stdin(stream, opt)
while not opt.stop do
if io.readable() then
local line = io.read("L") -- with crlf
if line and #line > 0 then
local ok = false
local data = bytes(line)
if stream:send_msg(message.new_data(0, data:size(), {token = self:token()})) then
if stream:send(data) and stream:flush() then
ok = true
end
end
if not ok then
break
end
end
else
os.sleep(500)
end
end
end
function remote_build_client:__tostring()
return "<remote_build_client>"
end
-- is connected? we cannot depend on client:init when run action
function is_connected()
-- the current process is in service? we cannot enable it
if os.getenv("XMAKE_IN_SERVICE") then
return false
end
local projectdir = os.projectdir()
local projectfile = os.projectfile()
if projectfile and os.isfile(projectfile) and projectdir then
local workdir = path.join(project_config.directory(), "remote_build")
local statusfile = path.join(workdir, "status.txt")
if os.isfile(statusfile) then
local status = io.load(statusfile)
if status and status.connected then
return true
end
end
end
end
function main()
local instance = remote_build_client()
instance:init()
return instance
end
|
ember_spirit_flame_guard_nb2017 = class({})
--------------------------------------------------------------------------------
function ember_spirit_flame_guard_nb2017:OnSpellStart()
local hTarget = self:GetCursorTarget()
if hTarget == nil or hTarget:IsInvulnerable() then
return
end
hTarget:AddNewModifier( self:GetCaster(), self, "modifier_ember_spirit_flame_guard", { duration = self:GetSpecialValueFor( "duration" ) } )
end
--------------------------------------------------------------------------------
function ember_spirit_flame_guard_nb2017:CastFilterResultTarget( hTarget )
local nResult = UnitFilter( hTarget, DOTA_UNIT_TARGET_TEAM_FRIENDLY, DOTA_UNIT_TARGET_HERO + DOTA_UNIT_TARGET_CREEP, DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES, self:GetCaster():GetTeamNumber() )
if nResult ~= UF_SUCCESS then
return nResult
end
return UF_SUCCESS
end
--------------------------------------------------------------------------------
|
-- Auto-generated bindings for component 'dropper'
dropper = {}
dropper.type = "dropper"
dropper.address = "00000000-0000-0000-0000-000000000000"
dropper.slot = 0
---
function dropper.pushItemIntoSlot() return end
---
function dropper.expandStack() return end
---
function dropper.listMethods() return end
---
function dropper.getInventorySize() return end
---
function dropper.pullItem() return end
---
function dropper.listSources() return end
---
function dropper.pushItem() return end
---
function dropper.getAllStacks() return end
---
function dropper.destroyStack() return end
---
function dropper.getAdvancedMethodsData() return end
---
function dropper.pullItemIntoSlot() return end
---
function dropper.swapStacks() return end
---
function dropper.condenseItems() return end
---
function dropper.getInventoryName() return end
---
function dropper.getStackInSlot() return end
|
local meta = FindMetaTable( "Entity" );
local pmeta = FindMetaTable( "Player" );
GM.DoorAccessors = {
{ "Type", "UInt", DOOR_UNBUYABLE, 3 },
{ "OriginalName", "String", "" },
{ "Name", "String", "" },
{ "Price", "UInt", 0, 16 },
{ "Building", "String", "" },
{ "Owners", "Table", { } },
{ "AssignedOwners", "Table", { } },
};
for k, v in pairs( GM.DoorAccessors ) do
meta["SetDoor" .. v[1]] = function( self, val )
if( CLIENT ) then return end
if( self["Door" .. v[1] .. "Val"] == val ) then return end
self["Door" .. v[1] .. "Val"] = val;
net.Start( "nSetDoor" .. v[1] );
net.WriteEntity( self );
if( v[2] == "UInt" or v[2] == "Int" ) then
net["Write" .. v[2]]( val, v[4] );
else
net["Write" .. v[2]]( val );
end
net.Broadcast();
end
meta["Door" .. v[1]] = function( self )
if( self["Door" .. v[1] .. "Val"] == false ) then
return false;
end
return self["Door" .. v[1] .. "Val"] or v[3];
end
if( SERVER ) then
util.AddNetworkString( "nSetDoor" .. v[1] );
else
local function nRecvData( len )
local door = net.ReadEntity();
local val;
if( v[2] == "UInt" or v[2] == "Int" ) then
val = net["Read" .. v[2]]( v[4] );
else
val = net["Read" .. v[2]]();
end
if( door and door:IsValid() ) then
door["Door" .. v[1] .. "Val"] = val;
end
end
net.Receive( "nSetDoor" .. v[1], nRecvData );
end
end
function meta:InitializeDoorAccessors()
for _, v in pairs( GAMEMODE.DoorAccessors ) do
self[v[1] .. "Val"] = v[3];
end
end
function meta:SyncDoorData( ply )
for _, n in pairs( GAMEMODE.DoorAccessors ) do
net.Start( "nSetDoor" .. n[1] );
net.WriteEntity( self );
if( n[2] == "UInt" or n[2] == "Int" ) then
net["Write" .. n[2]]( self["Door" .. n[1]]( self ), n[4] );
else
net["Write" .. n[2]]( self["Door" .. n[1]]( self ) );
end
net.Send( ply );
end
end
local function nRequestDoorData( len, ply )
if( CLIENT ) then return end
local ent = net.ReadEntity();
ent:SyncDoorData( ply );
end
net.Receive( "nRequestDoorData", nRequestDoorData );
function GM:NetworkEntityCreated( ent )
if( ent:IsDoor() ) then
net.Start( "nRequestDoorData" );
net.WriteEntity( ent );
net.SendToServer();
end
if( ent:IsNPC() ) then
net.Start( "nRequestNPCData" );
net.WriteEntity( ent );
net.SendToServer();
end
if( ent:GetClass() == "prop_physics" ) then
net.Start( "nRequestPropData" );
net.WriteEntity( ent );
net.SendToServer();
end
end
function pmeta:OwnedBuildings()
local tab = { };
for _, v in pairs( game.GetDoors() ) do
if( table.HasValue( v:DoorOwners(), self:CharID() ) and !table.HasValue( tab, v:DoorBuilding() ) ) then
table.insert( tab, v:DoorBuilding() );
end
end
return tab;
end
function pmeta:AssignedBuildings()
local tab = { };
for _, v in pairs( game.GetDoors() ) do
if( table.HasValue( v:DoorAssignedOwners(), self:CharID() ) and !table.HasValue( tab, v:DoorBuilding() ) ) then
table.insert( tab, v:DoorBuilding() );
end
end
return tab;
end
function pmeta:BuyDoor( ent )
if( CLIENT ) then return end
self:AddMoney( -ent:DoorPrice() );
self:UpdateCharacterField( "Money", tostring( self:Money() ) );
ent:SetDoorOwners( { self:CharID() } );
if( ent:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( ent:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorOwners( { self:CharID() } );
end
end
end
end
function pmeta:SellDoor( ent )
if( CLIENT ) then return end
self:AddMoney( math.floor( ent:DoorPrice() * 0.8 ) );
self:UpdateCharacterField( "Money", tostring( self:Money() ) );
ent:ResetDoor();
end
function meta:ResetDoor()
if( CLIENT ) then return end
self:SetDoorOwners( { } );
self:SetDoorAssignedOwners( { } );
self:SetDoorName( self:DoorOriginalName() );
if( self:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( self:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorOwners( { } );
v:SetDoorAssignedOwners( { } );
v:SetDoorName( v:DoorOriginalName() );
end
end
for _, v in pairs( ents.FindByClass( "cc_stove" ) ) do
if( v:GetStoveOn() ) then
v:SetStoveOn( false );
v.SteamEnt:Fire( "TurnOff" );
end
end
end
end
function pmeta:AddDoorOwner( ent )
local tab = ent:DoorOwners();
local ntab = { };
for k, v in pairs( tab ) do
ntab[k] = v;
end
table.insert( ntab, self:CharID() );
ent:SetDoorOwners( ntab );
if( ent:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( ent:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorOwners( ntab );
end
end
end
end
function pmeta:RemoveDoorOwner( ent )
local ntab = ent:DoorOwners();
local tab = { };
for _, v in pairs( ntab ) do
if( v != self:CharID() ) then
table.insert( tab, v );
end
end
ent:SetDoorOwners( tab );
if( ent:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( ent:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorOwners( tab );
end
end
end
end
function pmeta:AddDoorAssignedOwner( ent )
local tab = ent:DoorAssignedOwners();
local ntab = { };
for k, v in pairs( tab ) do
ntab[k] = v;
end
table.insert( ntab, self:CharID() );
ent:SetDoorAssignedOwners( ntab );
if( ent:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( ent:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorAssignedOwners( ntab );
end
end
end
end
function pmeta:RemoveDoorAssignedOwner( ent )
local ntab = ent:DoorAssignedOwners();
local tab = { };
for _, v in pairs( ntab ) do
if( v != self:CharID() ) then
table.insert( tab, v );
end
end
ent:SetDoorAssignedOwners( tab );
if( ent:DoorBuilding() != "" ) then
for _, v in pairs( game.GetDoors() ) do
if( ent:DoorBuilding() == v:DoorBuilding() ) then
v:SetDoorAssignedOwners( tab );
end
end
end
end
function pmeta:CanLock( ent )
if( self:IsAdmin() ) then return true end
if( self:HasAnyCombineFlag() and ent:DoorType() == DOOR_COMBINELOCK ) then return true; end
if( table.HasValue( ent:DoorOwners(), self:CharID() ) or table.HasValue( ent:DoorAssignedOwners(), self:CharID() ) ) then return true; end
return false;
end
function GM:ExplodeDoor( door, force )
if( CLIENT ) then return end
if( door:GetNoDraw() ) then return end
door:EmitSound( "physics/wood/wood_crate_break" .. math.random( 1, 5 ) .. ".wav" );
door:SetNotSolid( true );
door:SetNoDraw( true );
local newdoor = ents.Create( "prop_physics" );
newdoor:SetPos( door:GetPos() );
newdoor:SetAngles( door:GetAngles() );
newdoor:SetModel( door:GetModel() );
newdoor:SetSkin( door:GetSkin() );
newdoor:Spawn();
newdoor:GetPhysicsObject():SetVelocity( force * 300 );
newdoor:SetCollisionGroup( COLLISION_GROUP_DEBRIS );
timer.Simple( 300, function()
if( door and door:IsValid() ) then
door:Fire( "Unlock" );
door:SetNotSolid( false );
door:SetNoDraw( false );
end
if( newdoor and newdoor:IsValid() ) then
newdoor:Remove();
end
end );
end |
string = {}
--[[
Returns the internal numerical codes of the characters s[i], s[i+1], ..., s[j]. The default value for i is 1; the default value for j is i.
Note that numerical codes are not necessarily portable across platforms.
--]]
function string.byte( s, i, j ) return __std.Number end
--[[
Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its corresponding argument.
Note that numerical codes are not necessarily portable across platforms.
--]]
function string.char( ... ) return __std.String end
--[[
Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function.
func must be a Lua function without upvalues.
--]]
function string.dump( func ) return __std.String end
--[[
Looks for the first match of pattern in the string s. If it finds a match, then find returns the indices of s where this occurrence starts and ends; otherwise, it returns nil. A third, optional numerical argument init specifies where to start the search; its default value is 1 and can be negative. A value of true as a fourth, optional argument plain turns off the pattern matching facilities, so the function does a plain "find substring" operation, with no characters in pattern being considered "magic". Note that if plain is given, then init must be given as well.
If the pattern has captures, then in a successful match the captured values are also returned, after the two indices.
--]]
function string.find( s, pattern, init, plain ) return __std.Number end
--[[
Returns a formatted version of its variable number of arguments following the description given in its first argument (which must be a string). The format string follows the same rules as the printf family of standard C functions. The only differences are that the options/modifiers *, l, L, n, p, and h are not supported and that there is an extra option, q. The q option formats a string in a form suitable to be safely read back by the Lua interpreter: the string is written between double quotes, and all double quotes, newlines, embedded zeros, and backslashes in the string are correctly escaped when written. For instance, the call
string.format('%q', 'a string with "quotes" and \n new line')
will produce the string:
"a string with \"quotes\" and \
new line"
The options c, d, E, e, f, g, G, i, o, u, X, and x all expect a number as argument, whereas q and s expect a string.
This function does not accept string values containing embedded zeros, except as arguments to the q option.
--]]
function string.format( formatstring, ... ) return __std.String end
--[[
Returns an iterator function that, each time it is called, returns the next captures from pattern over string s. If pattern specifies no captures, then the whole match is produced in each call.
As an example, the following loop
s = "hello world from Lua"
for w in string.gmatch(s, "%a+") do
print(w)
end
will iterate over all the words from string s, printing one per line. The next example collects all pairs key=value from the given string into a table:
t = {}
s = "from=world, to=Lua"
for k, v in string.gmatch(s, "(%w+)=(%w+)") do
t[k] = v
end
For this function, a '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.
--]]
function string.gmatch( s, pattern ) return __std.String end
--[[
Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced by a replacement string specified by repl, which can be a string, a table, or a function. gsub also returns, as its second value, the total number of matches that occurred.
If repl is a string, then its value is used for replacement. The character % works as an escape character: any sequence in repl of the form %n, with n between 1 and 9, stands for the value of the n-th captured substring (see below). The sequence %0 stands for the whole match. The sequence %% stands for a single %.
If repl is a table, then the table is queried for every match, using the first capture as the key; if the pattern specifies no captures, then the whole match is used as the key.
If repl is a function, then this function is called every time a match occurs, with all captured substrings passed as arguments, in order; if the pattern specifies no captures, then the whole match is passed as a sole argument.
If the value returned by the table query or by the function call is a string or a number, then it is used as the replacement string; otherwise, if it is false or nil, then there is no replacement (that is, the original match is kept in the string).
Here are some examples:
x = string.gsub("hello world", "(%w+)", "%1 %1")
--> x="hello hello world world"
x = string.gsub("hello world", "%w+", "%0 %0", 1)
--> x="hello hello world"
x = string.gsub("hello world from Lua", "(%w+)%s*(%w+)", "%2 %1")
--> x="world hello Lua from"
x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv)
--> x="home = /home/roberto, user = roberto"
x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s)
return loadstring(s)()
end)
--> x="4+5 = 9"
local t = {name="lua", version="5.1"}
x = string.gsub("$name-$version.tar.gz", "%$(%w+)", t)
--> x="lua-5.1.tar.gz"
--]]
function string.gsub( s, pattern, repl, n ) return __std.String end
--[[
Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.
--]]
function string.len( s ) return __std.Number end
--[[
Receives a string and returns a copy of this string with all uppercase letters changed to lowercase. All other characters are left unchanged. The definition of what an uppercase letter is depends on the current locale.
--]]
function string.lower( s ) return __std.String end
--[[
Looks for the first match of pattern in the string s. If it finds one, then match returns the captures from the pattern; otherwise it returns nil. If pattern specifies no captures, then the whole match is returned. A third, optional numerical argument init specifies where to start the search; its default value is 1 and can be negative.
--]]
function string.match( s, pattern, init ) return __std.String end
--[[
Returns a string that is the concatenation of n copies of the string s.
--]]
function string.rep( s, n ) return __std.String end
--[[
Returns a string that is the string s reversed.
--]]
function string.reverse( s ) return __std.String end
--[[
Returns the substring of s that starts at i and continues until j; i and j can be negative. If j is absent, then it is assumed to be equal to -1 (which is the same as the string length). In particular, the call string.sub(s,1,j) returns a prefix of s with length j, and string.sub(s, -i) returns a suffix of s with length i.
--]]
function string.sub( s, i, j ) return __std.String end
--[[
Receives a string and returns a copy of this string with all lowercase letters changed to uppercase. All other characters are left unchanged. The definition of what a lowercase letter is depends on the current locale.
--]]
function string.upper (s) return __std.String end
|
mineunit("metadata")
local ItemStack = {}
--* `is_empty()`: returns `true` if stack is empty.
function ItemStack:is_empty() return self._count < 1 end
--* `get_name()`: returns item name (e.g. `"default:stone"`).
function ItemStack:get_name() return self._count > 0 and self._name or "" end
--* `set_name(item_name)`: returns a boolean indicating whether the item was cleared.
function ItemStack:set_name(item_name)
assert.is_string(item_name, "ItemStack:set_name expected item_name to be string")
self._name = item_name
if item_name == "" then
self:set_count(0)
return true
end
return false
end
--* `get_count()`: Returns number of items on the stack.
function ItemStack:get_count() return self._count end
--* `set_count(count)`: returns a boolean indicating whether the item was cleared
-- `count`: number, unsigned 16 bit integer
function ItemStack:set_count(count) self._count = count end
--* `get_wear()`: returns tool wear (`0`-`65535`), `0` for non-tools.
function ItemStack:get_wear() return self._wear end
--* `set_wear(wear)`: returns boolean indicating whether item was cleared
-- `wear`: number, unsigned 16 bit integer
function ItemStack:set_wear(wear)
assert(wear <= 65535, "ItemStack:set_wear invalid wear value: "..tostring(wear))
wear = wear < 0 and -((-wear) % 65536) or wear
self._wear = math.max(0, wear < 0 and 65536 + wear or wear)
end
--* `get_meta()`: returns ItemStackMetaRef. See section for more details
function ItemStack:get_meta() return self._meta end
--* `get_metadata()`: (DEPRECATED) Returns metadata (a string attached to an item stack).
function ItemStack:get_metadata() DEPRECATED("Using deprecated ItemStack:get_metadata()") end
--* `set_metadata(metadata)`: (DEPRECATED) Returns true.
function ItemStack:set_metadata(metadata) DEPRECATED("Using deprecated ItemStack:set_metadata(metadata)") end
--* `get_description()`: returns the description shown in inventory list tooltips.
-- The engine uses the same as this function for item descriptions.
-- Fields for finding the description, in order:
-- `description` in item metadata (See [Item Metadata].)
-- `description` in item definition
-- item name
function ItemStack:get_description()
local value = self:get_meta():get("description")
if value then return value end
return self:get_definition().description
end
--* `get_short_description()`: returns the short description.
-- Unlike the description, this does not include new lines.
-- The engine uses the same as this function for short item descriptions.
-- Fields for finding the short description, in order:
-- `short_description` in item metadata (See [Item Metadata].)
-- `short_description` in item definition
-- first line of the description (See `get_description()`.)
function ItemStack:get_short_description()
local value = self:get_meta():get("short_description")
if value then return value end
value = self:get_definition().short_description
if value then return value end
value = self:get_description()
if value then return value:gmatch("[^\r\n]+")() end
end
--* `clear()`: removes all items from the stack, making it empty.
function ItemStack:clear() self._count = 0 end
--* `replace(item)`: replace the contents of this stack.
-- `item` can also be an itemstring or table.
function ItemStack:replace(item)
local stack = mineunit.utils.type(item) == "ItemStack" and item or ItemStack(item)
self._name = stack._name
self._count = stack._count
self._wear = stack._wear
self._meta = stack._meta
end
--* `to_string()`: returns the stack in itemstring form.
-- https://github.com/minetest/minetest/blob/5.4.0/src/inventory.cpp#L59-L85
function ItemStack:to_string()
-- FIXME: Does not currently serialize metadata
return ("%s %d %d"):format(
self:get_name(),
self:get_count(),
self:get_wear()
)
end
--* `to_table()`: returns the stack in Lua table form.
function ItemStack:to_table()
-- NOTE: `metadata` field is not and probably will not be here, engine does add it but it seems to be legacy thing.
if self:get_count() > 0 then
return {
name = self:get_name(),
count = self:get_count(),
wear = self:get_wear(),
meta = self:get_meta():to_table().fields,
}
end
end
--* `get_stack_max()`: returns the maximum size of the stack (depends on the item).
function ItemStack:get_stack_max()
return self:is_known() and (self:get_definition().stack_max or 99) or 99
end
--* `get_free_space()`: returns `get_stack_max() - get_count()`.
function ItemStack:get_free_space()
return self:get_stack_max() - self:get_count()
end
--* `is_known()`: returns `true` if the item name refers to a defined item type.
function ItemStack:is_known()
return not not core.registered_items[self._name]
end
--* `get_definition()`: returns the item definition table.
function ItemStack:get_definition()
return core.registered_items[self._name] or core.registered_items.unknown
end
--* `get_tool_capabilities()`: returns the digging properties of the item,
-- or those of the hand if none are defined for this item type.
function ItemStack:get_tool_capabilities()
error("NOT IMPLEMENTED")
end
--* `add_wear(amount)`
-- Increases wear by `amount` if the item is a tool
-- `amount`: number, integer
function ItemStack:add_wear(amount)
self:set_wear(self._wear + amount)
end
--* `add_item(item)`: returns leftover `ItemStack`
-- Put some item or stack onto this stack
function ItemStack:add_item(item)
local leftover = ItemStack(item)
if item:is_empty() then
return leftover
end
if self:is_empty() then
self:replace(leftover)
leftover:set_count(0)
return leftover
end
local stack_max = item:get_stack_max()
local count = self:get_count()
local space = stack_max - count
if space > 0 and self:get_name() == leftover:get_name() then
local input_count = leftover:get_count()
if input_count > space then
self:set_count(stack_max)
leftover:set_count(input_count - space)
else
self:set_count(count + input_count)
leftover:set_count(0)
end
end
return leftover
end
--* `item_fits(item)`: returns `true` if item or stack can be fully added to this one.
function ItemStack:item_fits(item)
if self:is_empty() or self:get_name() == "" then
return true
end
local stack = ItemStack(item)
if self:get_name() == stack:get_name() then
return self:get_free_space() >= stack:get_count()
end
return false
end
--* `take_item(n)`: returns taken `ItemStack`
-- Take (and remove) up to `n` items from this stack
-- `n`: number, default: `1`
function ItemStack:take_item(n)
n = math.min(self:get_count(), n or 1)
self:set_count(self:get_count() - n)
local stack = ItemStack(self)
stack:set_count(n)
return stack
end
--* `peek_item(n)`: returns taken `ItemStack`
-- Copy (don't remove) up to `n` items from this stack
-- `n`: number, default: `1`
function ItemStack:peek_item(n)
n = n or 1
assert(n >= 0, "ItemStack:peek_item negative count not acceptable")
local res = ItemStack(self)
res:set_count(math.max(0, math.min(self:get_count(), n)))
return res
end
function ItemStack:__tostring()
local count = self:get_count()
return 'ItemStack("' .. self:get_name() .. (count > 1 and " "..count or "") .. '")'
end
-- TODO: Allows `same` assertions but in corner cases makes mod code to return true where engine would return false.
-- Requires either overriding luassert `same` (nice for users) or only allowing special assertions (not so nice).
function ItemStack:__eq(other)
if mineunit.utils.type(other) == "ItemStack" then
return self:get_name() == other:get_name()
and self._count == other._count
and self._wear == other._wear
and self._meta == other._meta
end
return false
end
mineunit.export_object(ItemStack, {
name = "ItemStack",
constructor = function(self, value)
local obj
if value == nil then
obj = {}
elseif type(value) == "string" then
local m = value:gmatch("%S+")
obj = {
-- This *should* fail if name is empty, do not "fix":
_name = m():gsub("^:", ""),
_count = (function(v) return v and tonumber(v) end)(m()),
_wear = (function(v) return v and tonumber(v) end)(m()),
_meta = MetaDataRef(m()),
}
elseif mineunit.utils.type(value) == "ItemStack" then
obj = table.copy(value)
obj._meta = MetaDataRef(value._meta)
else
error("NOT IMPLEMENTED: " .. type(value))
end
obj._count = obj._count or (obj._name and 1 or 0)
obj._name = obj._name or ""
obj._wear = obj._wear or 0
obj._meta = obj._meta or MetaDataRef()
setmetatable(obj, ItemStack)
return obj
end,
})
|
local module = {}
module.SSID = "myWifiSsid"
module.SSID_PASS = "supersecret"
module.HOST = "ipOfMqttHost"
module.PORT = 1883
module.USER = "userForMqtt"
module.PASS = "passwordForMqtt"
module.ID = "client_" .. node.chipid()
module.ENDPOINT = "nodemcu/relay1/"
module.MAX_RELAY = 7
return module
|
local json = require 'json'
ngx.header.content_type = 'application/json';
ngx.say(json.encode{server="ss"..tostring(math.random(1,3)), mode="RW"})
|
local PLUGIN = PLUGIN
netstream.Hook("StartPlayMusicCar", function(client, data)
local entity = client:GetVehicle()
local item = nut.item.list[data]
if entity.sound then
entity.sound:Stop()
end
item.options = {}
for k, v in pairs(item.cassette_options) do
item.options[#item.options + 1] = k
end
entity.CurCassette = data
entity.sound = CreateSound(entity, table.Random(item.options))
entity.sound:Play()
entity.sound:SetSoundLevel(0)
--entity:Repeat(item.cassette_options)
end)
netstream.Hook("StopCarRadioPlz", function(client)
local entity = client:GetVehicle()
if entity.sound then
entity.sound:Stop()
end
end)
|
-- -*-lua-*-
--
-- $Id: hnetd_wireshark.lua $
--
-- Author: Markus Stenberg <mstenber@cisco.com>
--
-- Copyright (c) 2013 cisco Systems, Inc.
--
-- Created: Tue Dec 3 11:13:05 2013 mstenber
-- Last modified: Sat Jul 14 08:36:53 2018 mstenber
-- Edit time: 123 min
--
-- This is Lua module which provides VERY basic dissector for TLVs we
-- transmit.
-- Usage: wireshark -X lua_script:hnetd_wireshark.lua
p_hncp = Proto("hncp", "Homenet Control Protocol")
local f_id = ProtoField.uint16('hncp.id', 'TLV id')
local f_len = ProtoField.uint16('hncp.len', 'TLV len')
local f_data = ProtoField.bytes('hncp.data', 'TLV data')
local f_nid_hash = ProtoField.bytes('hncp.node_identifier_hash',
'Node identifier')
local f_data_hash = ProtoField.bytes('hncp.data_hash',
'Node data hash')
local f_network_hash = ProtoField.bytes('hncp.network_hash',
'Network state hash')
local f_lid = ProtoField.uint32('hncp.llid', 'Local link identifier')
local f_rlid = ProtoField.uint32('hncp.rlid', 'Remote link identifier')
local f_upd = ProtoField.uint32('hncp.update_number', 'Update number')
local f_ms = ProtoField.uint32('hncp.ms_since_origination',
'Time since origination (ms)')
local f_interval_ms = ProtoField.uint32('hncp.keepalive_interval',
'Keep-alive interval (ms)')
p_hncp.fields = {f_id, f_len, f_data,
f_nid_hash, f_data_hash, f_network_hash,
f_lid, f_rlid, f_upd, f_ms, f_interval_ms}
local tlvs = {
-- dncp content
[1]={name='req-net-state'},
[2]={name='req-node-state',
contents={{4, f_nid_hash}},
},
[3]={name='endpoint-id',
contents={{4, f_nid_hash},
{4, f_lid}},
},
[4]={name='net-state',
contents={{8, f_network_hash}}},
[5]={name='node-state',
contents={{4, f_nid_hash},
{4, f_upd},
{4, f_ms},
{8, f_data_hash},
},
recurse=true
},
-- historic never deployed [6]={name='custom'},
-- historic never deployed [7]={name='fragment-count'},
[8]={name='neighbor', contents={{4, f_nid_hash},
{4, f_rlid},
{4, f_lid},
},
},
[9]={name='keepalive-interval', contents={{4, f_lid},
{4, f_interval_ms}},
},
[10]={name='trust-verdict'},
-- hncp content
[32]={name='version'},
[33]={name='external-connection', contents={}, recurse=true},
[34]={name='delegated-prefix'},
[35]={name='assigned-prefix'},
[36]={name='router-address'},
[37]={name='dhcpv4-options'},
[38]={name='dhcpv6-options'},
[39]={name='dns-delegated-zone'},
[40]={name='dns-domain-name'},
[41]={name='dns-node-name'},
[42]={name='managed-psk'},
[43]={name='prefix-policy'},
-- does not seem to exist anymore in the wild:
-- [199]={name='routing-protocol'},
}
function p_hncp.dissector(buffer, pinfo, tree)
pinfo.cols.protocol = 'hncp'
local rec_decode
local function data_decode(ofs, left, tlv, tree)
for i, v in ipairs(tlv.contents)
do
local elen, ef = unpack(v)
if elen > left
then
tree:append_text(string.format(' (!!! missing data - %d > %d (%s))',
elen, left, v))
return
end
tree:add(ef, buffer(ofs, elen))
left = left - elen
ofs = ofs + elen
end
if tlv.recurse
then
rec_decode(ofs, left, tree)
end
end
rec_decode = function (ofs, left, tree)
if left < 4
then
return
end
local partial
local rid = buffer(ofs, 2)
local rlen = buffer(ofs+2, 2)
local id = rid:uint()
local len = rlen:uint()
local bs = ''
local ps = ''
local tlv = tlvs[id] or {}
if tlv.name
then
bs = ' (' .. tlv.name .. ')'
end
if (len + 4) > left
then
len = left - 4
ps = ' (partial)'
partial = true
end
local tree2 = tree:add(buffer(ofs, len + 4),
string.format('TLV %d%s - %d value bytes%s',
id, bs, len, ps))
if partial
then
return
end
local fid = tree2:add(f_id, rid)
fid:append_text(bs)
local flen = tree2:add(f_len, rlen)
if len > 0
then
local fdata = tree2:add(f_data, buffer(ofs + 4, len))
if tlv.contents
then
-- skip the tlv header (that's why +- 4)
data_decode(ofs + 4, len, tlv, fdata)
end
end
-- recursively decode the rest too, hrr :)
-- (note that we have to round it up to next /4 boundary; stupid
-- alignment..)
len = math.floor((len + 3)/4) * 4
rec_decode(ofs + len + 4, left - len - 4, tree)
end
rec_decode(0, buffer:len(), tree:add(p_hncp, buffer()))
end
-- register as udp dissector
udp_table = DissectorTable.get("udp.port")
udp_table:add(8231, p_hncp)
|
WeaponTypes.addType("LancerLaser", "Lancer", armed) |
-- Prints mapping information
require "tests.elasticsearch.config"
broker:requestAndPrint(METHOD.GET, "myindex/_mapping")
|
local Event = require("api.Event")
local Gui = require("api.Gui")
local UiSkillTrackerEx = require("mod.skill_tracker_ex.api.gui.UiSkillTrackerEx")
local Chara = require("api.Chara")
data:add_multi(
"base.config_option",
{
{ _id = "enabled", type = "boolean", default = true },
}
)
local function setup_skill_tracker_ex()
save.base.tracked_skill_ids = table.set {
"elona.bow",
"elona.evasion",
"elona.eye_of_mind",
"elona.spell_crystal_spear",
"elona.tactics",
"elona.literacy",
"elona.memorization",
"elona.stat_learning",
}
local enable = config.skill_tracker_ex.enabled
Gui.hud_widget("hud_skill_tracker"):set_enabled(not enable)
Gui.hud_widget("skill_tracker_ex.skill_tracker_ex"):set_enabled(enable)
-- TODO hud
Gui.hud_widget("skill_tracker_ex.skill_tracker_ex"):widget():set_data(Chara.player())
end
Event.register("base.on_game_initialize", "Setup enhanced skill tracker", setup_skill_tracker_ex)
local function add_skill_tracker_ex()
Gui.add_hud_widget(UiSkillTrackerEx:new(), "skill_tracker_ex.skill_tracker_ex")
end
Event.register("base.before_engine_init", "Add enhanced skill tracker", add_skill_tracker_ex)
local function log_skill_exp_gain(chara, params)
if not chara:is_player() then
return
end
local holder = Gui.hud_widget("skill_tracker_ex.skill_tracker_ex")
if holder then
holder:widget():on_gain_skill_exp(params.skill_id, params.base_exp_amount, params.actual_exp_amount)
end
end
Event.register("elona_sys.on_gain_skill_exp", "Log skill exp gain", log_skill_exp_gain)
|
plyr = game:GetService("Players").LocalPlayer
char = plyr.Character
head = char:findFirstChild("Head")
torso = char:findFirstChild("Torso")
ra = char:findFirstChild("Right Arm")
la = char:findFirstChild("Left Arm")
rl = char:findFirstChild("Right Leg")
ll = char:findFirstChild("Left Leg")
neck = torso:findFirstChild("Neck")
rs = torso:findFirstChild("Right Shoulder")
ls = torso:findFirstChild("Left Shoulder")
rh = torso:findFirstChild("Right Hip")
lh = torso:findFirstChild("Left Hip")
hum = char:findFirstChild("Humanoid")
cam = game.Workspace.CurrentCamera
m = plyr:GetMouse()
RAB = Instance.new("Part")
RAB.formFactor = "Custom"
RAB.Size = Vector3.new(0.2, 0.2, 0.2)
RAB.Transparency = 1
RAB.Parent = char
RAB:BreakJoints()
RABW = Instance.new("Weld",RAB)
RABW.Part0 = char.Torso
RABW.Part1 = RAB
RABW.C1 = CFrame.new(-1.5, -0.5, 0)
LAB = Instance.new("Part")
LAB.formFactor = "Custom"
LAB.Size = Vector3.new(0.2, 0.2, 0.2)
LAB.Transparency = 1
LAB.Parent = char
LAB:BreakJoints()
LABW = Instance.new("Weld",LAB)
LABW.Part0 = char.Torso
LABW.Part1 = LAB
LABW.C1 = CFrame.new(1.5, -0.5, 0)
RAW = Instance.new("Weld",RAB)
RAW.Part0 = RAB
RAW.Part1 = nil
RAW.C1 = CFrame.new(0, 0.5, 0)
LAW = Instance.new("Weld",LAB)
LAW.Part0 = LAB
LAW.Part1 = nil
LAW.C1 = CFrame.new(0, 0.5, 0)
ypcall(function()
for i,v in pairs(char:GetChildren()) do
if v.ClassName ~= "Humanoid" and v.ClassName ~= "Script" and v.ClassName ~= "LocalScript" and v.ClassName ~= "BodyMorph" and v.ClassName ~= "Part" then
v:Destroy()
end
end
ger = head:findFirstChild("face")
if ger then
ger:Destroy()
end
end)
mode = ""
ypcall(function()
local f = Instance.new("TextLabel")
local b = Instance.new("BillboardGui")
f.Parent = b
b.Name = "Lua"
b.Parent = char
f.Size = UDim2.new(1, 0, 0.3, 0)
b.Size = UDim2.new(10, 0, 10, 0)
f.TextColor3 = Color3.new(0/255,0/255,150/255)
b.StudsOffset = Vector3.new(0,0,0)
b.Adornee = char.Head
f.BackgroundTransparency = 1
f.Font = "Legacy"
f.FontSize = "Size14"
f.Text = "Lua Rogue"
cyl = Instance.new("Part", char)
cyl.FormFactor = "Custom"
cyl.Size = Vector3.new(0.2,0.2,0.2)
cyl.CanCollide = false
cyl:BreakJoints()
cyl.BrickColor = BrickColor.new("Deep blue")
cylm = Instance.new("CylinderMesh", cyl)
cylm.Scale = Vector3.new(6,1,6)
decal = Instance.new("Decal", cyl)
decal.Face = "Bottom"
decal.Texture = "http://www.roblox.com/asset/?id=90565373"
fh = char.Head:Clone()
fhw = Instance.new("Weld", char.Head)
fhw.Part0 = char.Head
fh.Parent = char
fh.Name = "Fake Head"
fhw.Part1 = fh
fhw.C0 = CFrame.new(0,0,0)
char.Head.Transparency = 1
hum.Name = "1337 Not A Humanoid"
ft = char.Torso:Clone()
ft.FormFactor = "Custom"
ft.Size = Vector3.new(0.2,0.2,0.2)
ft.Parent = char
ft.Name = "FakeTorso"
ft.BrickColor = BrickColor.new("Really black")
ftw = Instance.new("Weld", char.Torso)
ftw.Part0 = char.Torso
ftw.Part1 = ft
ftw.C0 = CFrame.new(0,0,0)
wel = Instance.new("Weld", ft)
wel.Part0 = char.Torso
wel.Part1 = cyl
wel.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(1.56,3.12,0)
char.Torso.Transparency = 1
bm = Instance.new("BlockMesh", ft)
bm.Scale = Vector3.new(10,10,4)
nm = ""
sm = {}
dable = false
K1D = false
m.KeyDown:connect(function(k)
if k == "j" and mode == "" then
nm = "Ex"
mode = "NS"
if not K1D then
K1D = true
LAW.Part1 = la
RAW.Part1 = ra
for i = 0, 1, 0.15 do
LAW.C0 = CFrame.Angles(0,-math.rad(100*i),-math.rad(90*i))
wait()
end
g = Instance.new("Part", game.Workspace)
g.Name = "NS"
g.CanCollide = false
g.FormFactor = "Custom"
g.Size = Vector3.new(.8,.2,.8)
g:BreakJoints()
table.insert(sm,g)
m1 = Instance.new("SpecialMesh", g)
m1.MeshId = "http://www.roblox.com/asset/?id=11376946"
m1.TextureId = "http://www.roblox.com/asset/?id=2218795"
g.CFrame = CFrame.new(la.Position)
vol = Instance.new("BodyVelocity", g)
vol.maxForce = Vector3.new(math.huge,math.huge,math.huge)
vol.P = 90
g.Name = "1337NOOOB BAM NAD"
vol.velocity = (m.Hit.p - g.Position).unit * 90
num1 = 0
num2 = 0
db = false
g.Touched:connect(function(hit)
if hit.Name == g.Name then
end
stuck = false
perstuck = ""
if hit.Parent and hit.Parent.Name ~= plyr.Name then
num1 = num1 + 1
if num1 == 1 then
weld = Instance.new("Weld",g)
weld.C0 = hit.CFrame:toObjectSpace(g.CFrame)
weld.Part0 = hit
weld.Part1 = g
vol:Destroy()
end
end
if hit.Parent.ClassName == "Model" and hit.Parent.Name ~= plyr.Name then
der = game.Players:findFirstChild(hit.Parent.Name)
if der then
hum = hit.Parent:findFirstChild("Humanoid")
if hum then
if not db then
db = true
num2 = num2 + 1
if num2 == 1 then
weld = Instance.new("Weld",g)
weld.C0 = hit.CFrame:toObjectSpace(g.CFrame)
weld.Part0 = hit
weld.Part1 = g
vol:Destroy()
hum:TakeDamage(10)
stuck = true
perstuck = hit.Parent.Name
end
db = false
end
end
end
end
end)
for i = 0, 1, 0.15 do
LAW.C0 = CFrame.Angles(0,0,0)
wait()
end
LAW.Part1 = nil
RAW.Part1 = nil
K1D = false
mode = ""
end
elseif k == "f" and mode == "" then
hum.WalkSpeed = 0
mode = "atk2"
LAW.Part1 = la
RAW.Part1 = ra
hum.WalkSpeed = 0
bg = Instance.new("BodyGyro", char.Torso)
bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
coroutine.resume(coroutine.create(function()
while wait() do
bg.cframe = CFrame.new(torso.Position,Vector3.new(m.hit.p.x,torso.Position.y,m.hit.p.z)) * CFrame.Angles(0, 0, 0)
end
end))
for i = 0, 1, 0.05 do
RAW.C0 = CFrame.Angles(math.rad(200*i),0,0)
wait()
end
cyl2 = Instance.new("Part", char)
cyl2.FormFactor = "Custom"
cyl2.Size = Vector3.new(0.2,0.2,0.2)
cyl2.CanCollide = false
cyl2:BreakJoints()
cyl2.Name = "atak"
cyl2.BrickColor = BrickColor.new("Deep blue")
cylm2 = Instance.new("CylinderMesh", cyl2)
cylm2.Scale = Vector3.new(6,1,6)
cyl2.Transparency = 1
wel2 = Instance.new("Weld", ra)
wel2.Part0 = ra
wel2.Part1 = cyl2
wel2.C0 = CFrame.new(0,-3,0)
coroutine.resume(coroutine.create(function()
for i=0, 2, 0.5 do
cyl2.Transparency = cyl2.Transparency -i
wait()
end
end))
wait(1)
decal2 = Instance.new("Decal", cyl2)
decal2.Face = "Bottom"
decal2.Texture = "http://www.roblox.com/asset/?id=90565373"
for i=0, 3, 0.05 do
cylm2.Scale = cylm2.Scale + Vector3.new(i,0,i)
wait()
end
elseif k == "t" and nm == "Ex" then
for i,v in pairs(sm) do
if v:IsA("Part") then
g = Instance.new("Explosion", v)
g.Position = v.Position
end
end
elseif k == "r" then
RAW.Part1 = ra
LAW.Part1 = la
coroutine.resume(coroutine.create(function()
for i = 0, 1, 0.05 do
RAW.C0 = CFrame.Angles(math.rad(130*i),0,0)
wait()
end
end))
coroutine.resume(coroutine.create(function()
for i = 0, 1, 0.05 do
LAW.C0 = CFrame.Angles(math.rad(130*i),0,0)
wait()
end
end))
ball = Instance.new("Part", char)
ball.Size = Vector3.new(2,2,2)
ball.Shape = "Ball"
ball.BrickColor = BrickColor.new("Really blue")
ball:BreakJoints()
ball.TopSurface = "Smooth"
ball.BottomSurface = "Smooth"
ball.RightSurface = "Smooth"
ball.LeftSurface = "Smooth"
ball.FrontSurface = "Smooth"
ball.Transparency = 1
ball.BackSurface = "Smooth"
wel4 = Instance.new("Weld", ball)
wel4.Part0 = ball
wel4.Part1 = char.Torso
wel4.C0 = CFrame.new(0,-2,2)
wait(2)
wel4:Destroy()
coroutine.resume(coroutine.create(function()
for i=0, 1,0.1 do
wait()
ball.Transparency = ball.Transparency -i
end
end))
coroutine.resume(coroutine.create(function()
for i = 0, 1, 0.05 do
RAW.C0 = CFrame.Angles(math.rad(0),0,0)
wait()
end
end))
coroutine.resume(coroutine.create(function()
for i = 1, 2, 0.05 do
LAW.C0 = CFrame.Angles(math.rad(0),0,0)
wait()
end
end))
ball.Touched:connect(function(hit)
if hit and hit.Parent:findFirstChild("Humanoid") and hit.Parent.Name ~= plyr.Name then
g = Instance.new("Explosion", ball)
g.BlastPressure = 0
g.Position = Vector3.new(ball.Position)
hit.Parent:findFirstChild("Humanoid").Health = 0
wait(1)
ball:Destroy()
end
end)
RAW.Part1 = nil
LAW.Part1 = nil
elseif k == "v" then
b1 = Instance.new("Part", char)
b1.BrickColor = BrickColor.new("Really blue")
b1.Size = Vector3.new(1,1,1)
b2 = Instance.new("Part", char)
b2.BrickColor = BrickColor.new("Cyan")
b2.Size = Vector3.new(1,1,1)
bm = Instance.new("BlockMesh", b1)
bm2 = Instance.new("BlockMesh",b2)
b1.Transparency = 0.3
b1:BreakJoints()
b2:BreakJoints()
b2.Transparency = 0.3
wel1 = Instance.new("Weld",ra)
wel1.Part0 = ra
wel1.Part1 = b1
wel1.C0 = CFrame.new(0,-1.5,0)
wel2 = Instance.new("Weld",ra)
wel2.Part0 = ra
wel2.Part1 = b2
wel2.C0 = CFrame.new(0,-1.5,0)
i = 0
i2 = 0
coroutine.resume(coroutine.create(function()
while wait() do
i = i + 0.8
if b1.Parent ~= nil then
wel1.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(i,0,0)
end
end
end))
coroutine.resume(coroutine.create(function()
while wait() do
i2 = i2 + 0.8
if b2.Parent ~= nil then
wel2.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(0,i,0)
end
end
end))
bg2 = Instance.new("BodyGyro", char:findFirstChild("Torso"))
bg2.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
coroutine.resume(coroutine.create(function()
while wait() do
bg2.cframe = CFrame.new(torso.Position,Vector3.new(m.hit.p.x,torso.Position.y,m.hit.p.z)) * CFrame.Angles(0, math.pi/2, 0)
end
end))
RAW.Part1 = ra
neck.DesiredAngle = -1.75
neck.CurrentAngle = -1.75
mode = "spatk"
coroutine.resume(coroutine.create(function()
for i = 0, 1, 0.08 do
RAW.C0 = CFrame.Angles(0,0,math.rad(80*i))
wait()
print(math.rad(80*i))
end
end))
end
end)
m.Button1Down:connect(function()
if mode == "atk2" then
far = char:findFirstChild("atak")
cyl3 = cyl2:Clone()
cyl3:BreakJoints()
cyl3.Transparency = 0
cyl3.Parent = game.Workspace
decal3 = Instance.new("Decal", cyl3)
decal3.Face = "Bottom"
decal3.Texture = "http://www.roblox.com/asset/?id=90565373"
far:BreakJoints()
far:Destroy()
vol = Instance.new("BodyVelocity", cyl3)
vol.maxForce = Vector3.new(math.huge,math.huge,math.huge)
vol.P = 90
vol.velocity = (m.Hit.p - cyl3.Position).unit * 90
cyl3.Anchored = false
cyl3.Touched:connect(function(hit)
if hit.Parent.Name ~= plyr.Name then
vol2 = Instance.new("BodyVelocity", hit.Parent:findFirstChild("Torso"))
vol2.maxForce = Vector3.new(math.huge,math.huge,math.huge)
vol2.P = 300
vol2.velocity = vol.velocity
hit.Parent:findFirstChild("Humanoid").Sit = true
game:GetService("Debris"):AddItem(vol2,0.6)
hit.Parent:findFirstChild("Humanoid"):TakeDamage(40)
cyl3:Destroy()
end
end)
for i = 0, 1, 0.1 do
RAW.C0 = CFrame.Angles(0,0,0)
wait()
end
elseif mode == "spatk" then
pp = m.Hit.p
b3 = b1:Clone()
b3.CanCollide = false
b3.Parent = game.Workspace
bg = Instance.new("BodyGyro",b3)
b3.CFrame = CFrame.new(b2.Position)
b3.Anchored = true
ch = 0
for i=0,3,0.08 do
wait()
b3:findFirstChild("Mesh").Scale = Vector3.new(i,i,i)
end
end
coroutine.resume(coroutine.create(function()
while wait() do
ch = ch + 0.08
bg.cframe = CFrame.Angles(ch,0,0)
end
end))
vol = Instance.new("BodyVelocity", b3)
vol.maxForce = Vector3.new(math.huge,math.huge,math.huge)
vol.P = 90
vol.velocity = (pp - b2.Position).unit * 50
b3.Anchored = false
end)
m.Button1Up:connect(function()
if mode == "atk2" then
mode = ""
bg:Destroy()
hum.WalkSpeed = 16
RAW.Part1 = nil
LAW.Part1 = nil
hum.WalkSpeed = 16
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 17 then
ad = false
elseif k == "j" then
mode = ""
end
end)
end)
|
--[[
File: src/animations/animationstate.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Defines a current animation state. Effectively the IDrawable interface for a sprite.
]]--
local AnimationFrame = require("src.animations.animationframe")
local AnimationState = Class{function(self, image, animationSet, size, initialKey)
self:reset()
self.image = image
self.animationSet = animationSet
self.key = "default"
if self.animationSet then
self.key = animationSet.initialKey
end
if initialKey then
-- print("Initial Key: " .. initialKey)
self.key = initialKey
end
self.overlay = {255, 255, 255, 255}
self.offset = vector(0, 0)
self.scale = vector(1, 1)
if self.image then
self.size = size or vector(self.image:getWidth(), self.image:getHeight())
self.quad = love.graphics.newQuad(0, 0, self.size.x, self.size.y, self.image:getWidth(), self.image:getHeight())
else
self.size = size or vector(16, 16)
self.quad = love.graphics.newQuad(0, 0, self.size.x, self.size.y, self.size.x, self.size.y)
end
self.origin = self.size / 2
end}
function AnimationState:reset()
self.currentFrameID = 1
self.currentTime = 0
self.currentFrames = 0
self.started = false
self.ended = true
self.looping = false
self.bouncing = false
end
function AnimationState:setKey(key)
self.key = key
self:reset()
end
function AnimationState:getAnimation()
if self.animationSet then
return self.animationSet:getAnimation(self.key)
else
return nil
end
end
function AnimationState:getFrame()
local a = self:getAnimation()
if a then
-- print("Tried to fetch AnimationFrame with nil AnimationSet - returning image dimension frame")
return a:getFrame(self.currentFrameID)
else
return AnimationFrame(vector(0, 0), vector(self.image:getWidth(), self.image:getHeight()))
end
end
function AnimationState:update(dt)
self.currentTime = self.currentTime + dt
self.currentFrames = self.currentFrames + 1
local a = self:getAnimation()
if not a then
return
end
if self.currentFrameID > #a.frames then
self:reset()
end
if #a.frames >= 1 and self.currentFrameID >= 1 then
local f = self:getFrame()
if self.currentFrames >= f.frames or self.currentTime >= f.time then
self.currentTime = 0
self.currentFrames = 0
self:nextFrame(f, a)
end
self.quad:setViewport(f.source.x, f.source.y, f.size.x, f.size.y)
self.offset = f.offset
end
end
function AnimationState:nextFrame(currentFrame, currentAnimation)
if not self.bouncing then
self.currentFrameID = self.currentFrameID + 1
else
if self.currentFrameID > 1 then
self.currentFrameID = self.currentFrameID - 1
else
self.bouncing = false
self.currentFrameID = self.currentFrameID + 1
end
end
local innerLoopExists = currentAnimation.loopStart > 1 and currentAnimation.loopEnd < #currentAnimation.frames and currentAnimation.loopEnd >= currentAnimation.loopStart;
if not self.started then
if self.bouncing then
if self.currentFrameID <= 1 then
self.bouncing = false
-- self.currentFrameID = self.currentFrameID + 1
end
else
self.looping = innerLoopExists and self.currentFrameID >= currentAnimation.loopEnd
if self.currentFrameID > #currentAnimation.frames or self.looping then
self.started = true
self.bouncing = self.bounce
if not self.bounce and innerLoopExists then
self.currentFrameID = currentAnimation.loopStart
elseif not self.bounce then
self.started = false
self.currentFrameID = 1
end
end
end
elseif self.looping and innerLoopExists then
self.bouncing = not (self.currentFrameID <= currentAnimation.loopStart and self.bouncing)
if self.currentFrameID >= currentAnimation.loopEnd and not self.bounce then
self.currentFrameID = currentAnimation.loopStart
end
else
if #currentAnimation.frames >= 1 then
if self.currentFrameID >= #currentAnimation.frames then
self.ended = true
self.started = false
self.looping = false
self.bouncing = self.bounce
if not self.bounce then
self.currentFrameID = 1
end
end
end
end
end
function AnimationState:draw(position)
love.graphics.setColor(self.overlay)
--love.graphics.drawq(self.image, self.quad, math.floor(position.x + self.offset.x + 0.5), math.floor(position.y + self.offset.y + 0.5))
if self.image then
love.graphics.drawq(self.image, self.quad, (position.x + self.offset.x), (position.y + self.offset.y), 0, self.scale.x, self.scale.y, self.origin.x, self.origin.y)
end
end
return AnimationState
--[[
function Animation:nextFrame(currentFrame)
local m = self.currentTime / currentFrame.time
self.currentTime = self.currentTime - (m * currentFrame.time)
self.currentFrames = 0
if not self.bouncing then
self.currentFrameID = self.currentFrameID + 1
else
if self.currentFrameID > 1 then
self.currentFrameID = self.currentFrameID - 1
else
self.bouncing = false
self.currentFrameID = self.currentFrameID + 1
end
end
local innerLoopExists = self.loopStart > 1 and self.loopEnd < #self.frames and self.loopEnd >= self.loopStart;
if not self.started then
if self.bouncing then
if self.currentFrameID <= 1 then
self.bouncing = false
self.currentFrameID = self.currentFrameID + 1
end
else
self.looping = innerLoopExists and self.currentFrameID >= self.loopEnd
if self.currentFrameID > #self.frames or self.looping then
self.started = true
self.bouncing = self.bounce
if not self.bounce and innerLoopExists then
self.currentFrameID = self.loopStart
elseif not self.bounce then
self.started = false
self.currentFrameID = 1
end
end
end
elseif self.looping and innerLoopExists then
self.bouncing = not (self.currentFrameID <= self.loopStart and self.bouncing)
if self.currentFrameID >= self.loopEnd and not self.bounce then
self.currentFrameID = self.loopStart
end
else
if #self.frames >= 1 then
if self.currentFrameID >= #self.frames then
self.ended = true
self.started = false
self.looping = false
self.bouncing = self.bounce
if not self.bounce then
self.currentFrameID = 0
end
end
end
end
end
]]--
|
-- opens nvidia control panel + afterburner from their default locations
-- sleep function
function sleep(n)
if
n > 0 then os.execute("ping -n " .. tonumber(n+1) .. " localhost > NUL")
end
end
-- powershell script
local script = [[
#check if AfterBurner has started running
if($Null -eq (get-process "MSIAfterburner" -ea SilentlyContinue)){
Write-Output "MSIAfterburner Not Running"
} else {
Write-Output "MSIAfterburner Running"
}
#check if RTSS module has started running
if($Null -eq (get-process "RTSS" -ea SilentlyContinue)){
Write-Output "RTSS not loaded"
} else {
Write-Output "RTSS loaded"
}
#check if nvidia containers are loaded
if($Null -eq (get-process "NvTelemetryContainer" -ea SilentlyContinue)){
Write-Output "NVIDIA containers Not Running"
} else {
Write-Output "NVIDIA containers Running"
}
]]
-- create powershell process and feed script to its stdin
local pipe = io.popen("powershell -command -", "w")
pipe:write(script)
pipe:close()
io.write("continue with this operation (y/n)?")
answer=io.read()
if answer=="y" then
print("opening Nvidia")
os.execute('"C:\\Program Files\\NVIDIA Corporation\\Control Panel Client\\nvcplui.exe"', "r")
sleep(1)
print("opening MSI")
os.execute('"C:\\Program Files (x86)\\MSI Afterburner\\MSIAfterburner.exe"', "r")
elseif answer=="n" then
print("closing")
print(".......")
sleep(1)
end
|
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
CustomizableWeaponry:registerAmmo("9x18MM", "9x18MM Rounds", 9, 18)
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "M1911"
SWEP.IconLetter = "f"
killicon.AddFont("cw_deagle", "CW_KillIcons", SWEP.IconLetter, Color(255, 80, 0, 150))
SWEP.MuzzleEffect = "muzzleflash_pistol"
SWEP.PosBasedMuz = false
SWEP.Shell = "smallshell"
SWEP.ShellScale = 1
SWEP.ShellOffsetMul = 1
SWEP.ShellPosOffset = {x = 2, y = 0, z = 1}
SWEP.IronsightPos = Vector(-2.01, 0.386, 0.34)
SWEP.IronsightAng = Vector(0.4, 0, 0)
SWEP.SprintPos = Vector(2.526, -9.506, -8.24)
SWEP.SprintAng = Vector(70, 0, 0)
SWEP.RMRPos = Vector(-2.004, -3.22, -0.238)
SWEP.RMRAng = Vector(0, 0, 0)
SWEP.MoveType = 1
SWEP.ViewModelMovementScale = 0.8
SWEP.FullAimViewmodelRecoil = false
SWEP.BoltBone = "slide"
SWEP.BoltShootOffset = Vector(-1.392, 0, 0)
SWEP.BoltBonePositionRecoverySpeed = 25
SWEP.OffsetBoltDuringNonEmptyReload = true
SWEP.BoltReloadOffset = Vector(1.5, 0, 0)
SWEP.ReloadBoltBonePositionRecoverySpeed = 15
SWEP.ReloadBoltBonePositionMoveSpeed = 100
SWEP.StopReloadBoneOffset = 0.7
SWEP.HoldBoltWhileEmpty = true
SWEP.DontHoldWhenReloading = true
SWEP.DisableSprintViewSimulation = true
SWEP.SightWithRail = true
SWEP.FOVPerShot = 0.3
SWEP.AttachmentModelsVM = {
["md_cobram2"] = {model = "models/cw2/attachments/cobra_m2.mdl", bone = "body", pos = Vector(7.498, -1.479, 0.002), angle = Angle(0, 180, 0), size = Vector(0.75, 0.75, 0.75), color = Color(255, 255, 255, 255)},
["md_rail"] = {model = "models/cw2/attachments/slimpistolrail.mdl", bone = "body", pos = Vector(3.48, -0.452, 0), angle = Angle(0, 0, -90), size = Vector(0.1, 0.1, 0.1)},
["md_rmr"] = {model = "models/cw2/attachments/pistolholo.mdl", bone = "body", pos = Vector(-0.464, 1.292, 0.216), angle = Angle(0, 0, -90), size = Vector(0.6, 0.6, 0.6)},
["md_insight_x2"] = { type = "Model", model = "models/cw2/attachments/pistollaser.mdl", bone = "body", pos = Vector(2.299, -0.561, 0), angle = Angle(0, 180, 90), size = Vector(0.079, 0.079, 0.079), bodygroups = {[1] = 1}}
}
SWEP.LaserPosAdjust = Vector(0.5, 0, -1)
SWEP.LaserAngAdjust = Angle(0, 180, 0)
SWEP.DrawTraditionalWorldModel = false
SWEP.WM = "models/weapons/cw_pist_m1911.mdl"
SWEP.WMPos = Vector(-1, -1, -0.5)
SWEP.WMAng = Vector(0, 0, 180)
SWEP.LuaVMRecoilAxisMod = {vert = 0.25, hor = 0.5, roll = 2, forward = 0, pitch = 1}
SWEP.CustomizationMenuScale = 0.01
SWEP.BoltBonePositionRecoverySpeed = 17 -- how fast does the bolt bone move back into it's initial position after the weapon has fired
SWEP.SlideBGs = {main = 1, pm = 0, pb = 1}
SWEP.SuppressorBGs = {main = 2, pm = 1, pb = 2, none = 0}
SWEP.MagBGs = {main = 3, regular = 0, extended = 1}
end
SWEP.ShootWhileProne = true
SWEP.MuzzleVelocity = 251 -- in meter/s
SWEP.LuaViewmodelRecoil = true
SWEP.LuaViewmodelRecoilOverride = true
SWEP.CanRestOnObjects = false
SWEP.Attachments = {[1] = {header = "Barrel", offset = {-350, -200}, atts = {"md_cobram2"}},
[2] = {header = "Sight", offset = {300, -300}, atts = {"md_rmr"}, exclusions = {md_insight_x2 = true}},
[3] = {header = "Rail", offset = {-350, 200}, atts = {"md_insight_x2"}, exclusions = {md_rmr = true}},
["+reload"] = {header = "Ammo", offset = {800, 100}, atts = {"am_magnum", "am_matchgrade"}}}
SWEP.Animations = {reload = "reload",
fire = {"shoot1", "shoot2"},
idle = "idle",
draw = "draw"}
SWEP.Sounds = {draw = {{time = 0.3, sound = "CW_FOLEY_LIGHT"},
{time = 0.75, sound = "CW_M1911_TRIGGER"}},
reload = {{time = 0.51, sound = "CW_M1911_MAGOUT"},
{time = 1.18, sound = "CW_M1911_MAGIN"},
{time = 1.26, sound = "CW_M1911_SLIDEBACK"},
{time = 1.62, sound = "CW_M1911_SLIDEFORWARD"}}
}
SWEP.SpeedDec = 7
SWEP.Slot = 1
SWEP.SlotPos = 0
SWEP.NormalHoldType = "pistol"
SWEP.RunHoldType = "normal"
SWEP.FireModes = {"semi"}
SWEP.Base = "ttt_cw2_base"
SWEP.Category = "CW 2.0"
SWEP.Author = "Spy"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/cw2/pistols/m1911.mdl"
SWEP.WorldModel = "models/weapons/cw_pist_m1911.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Primary.ClipSize = 7
SWEP.Primary.DefaultClip = 7
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ".45 ACP"
SWEP.FireDelay = 0.15
SWEP.FireSound = "CW_M1911_FIRE"
SWEP.FireSoundSuppressed = "CW_M1911_FIRE_SUPPRESSED"
SWEP.Recoil = 1
SWEP.HipSpread = 0.04
SWEP.AimSpread = 0.01
SWEP.VelocitySensitivity = 1.25
SWEP.MaxSpreadInc = 0.036
SWEP.SpreadPerShot = 0.0125
SWEP.SpreadCooldown = 0.18
SWEP.Shots = 1
SWEP.Damage = 25
SWEP.DrawSpeed = 1.4
SWEP.DeployTime = 1.1
--SWEP.Chamberable = false
SWEP.ReloadSpeed = 1
SWEP.ReloadTime = 1.58
SWEP.ReloadHalt = 1.85
SWEP.ReloadTime_Empty = 1.69
SWEP.ReloadHalt_Empty = 2.32
SWEP.SnapToIdlePostReload = true
|
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Advanced Laser Receiver"
ENT.WireDebugName = "Advanced Laser Receiver"
if CLIENT then return end -- Only the server runs the rest of this
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetUseType( SIMPLE_USE )
self.Outputs = WireLib.CreateSpecialOutputs(self, {"PrimaryActive", "SecondaryActive", "X", "Y", "Z", "UserX", "UserY", "UserZ", "Pos [VECTOR]", "UserPos [VECTOR]", "RangerData [RANGER]"})
self.VPos = Vector(0,0,0)
self:SetOverlayText( "Advanced Laser Pointer Receiver" )
end
function ENT:GetBeaconPos(sensor)
return self.VPos
end
function ENT:GetBeaconVelocity(sensor) return Vector() end
function ENT:Use( User, caller )
local laserGiven = false -- Was an advanced laserpointer given to the player
if not hook.Run("PlayerGiveSWEP", User, "adv_laserpointer", weapons.Get( "adv_laserpointer" )) then return end -- If the player can't give an adv_laserpointer, just return
User:PrintMessage(HUD_PRINTTALK, "Hold down your use key for 2 seconds to link or get a linked Laser Pointer.")
timer.Create("adv_las_receiver_use_"..User:EntIndex(), 2, 1, function()
if not IsValid(User) or not User:IsPlayer() then return end -- We don't want to give weapons to wired users for instance
if not User:KeyDown(IN_USE) then return end -- Make sure the user is still holding down the use key
if not User:GetEyeTrace().Entity then return end -- Make sure the user is still looking at any? entity
if not IsValid(User:GetWeapon("adv_laserpointer")) then
if not hook.Run("PlayerGiveSWEP", User, "adv_laserpointer", weapons.Get( "adv_laserpointer" )) then return end
User:Give("adv_laserpointer")
laserGiven = true
end
User:GetWeapon("adv_laserpointer").Receiver = self -- Set the receiver
if(laserGiven) then
User:PrintMessage(HUD_PRINTTALK, "adv_laserpointer given and linked")
else
User:PrintMessage(HUD_PRINTTALK, "adv_laserpointer linked")
end
User:SelectWeapon("adv_laserpointer")
end)
end
local function playerDeath( victim, weapon, killer)
if(victim:HasWeapon("adv_laserpointer"))then
local pointer = victim:GetWeapon("adv_laserpointer")
if(pointer && pointer:IsValid()) then
victim.AdvLasReceiver = pointer.Receiver
end
end
end
hook.Add( "PlayerDeath", "laserMemory", playerDeath)
duplicator.RegisterEntityClass("gmod_wire_adv_las_receiver", WireLib.MakeWireEnt, "Data")
|
---@param lastVersion integer
---@param nextVersion integer
RegisterModListener("Loaded", ModuleUUID, function(lastVersion, nextVersion)
if lastVersion < 386859008 then
--Migrating Lua timer data
for i,db in pairs(Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Get(nil,nil)) do
local timerName,uuid = table.unpack(db)
Timer.StoreData(timerName, {uuid})
end
for i,db in pairs(Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Get(nil,nil,nil)) do
local timerName,uuid1,uuid2 = table.unpack(db)
Timer.StoreData(timerName, {uuid1,uuid2})
end
Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Delete(nil)
Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Delete(nil,nil)
Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Delete(nil,nil,nil)
end
end)
-- Timer.RegisterListener("TestTimer", function(...) print(Lib.inspect({...})) end)
-- Timer.Start("TestTimer", 1500, "Test1", false, 49, "Hello")
--Mods.LeaderLib.Timer.RegisterListener("TestTimer", function(...) print("TimerFinished", Mods.LeaderLib.Lib.inspect({...})) end)
--Mods.LeaderLib.Timer.Start("TestTimer", 1500, "Test1", false, 49, "Hello", Ext.GetCharacter(host.MyGuid), function() print('test') end)
--Mods.LeaderLib.Timer.Start("TestTimer", 1500, "Test1", false, 49, "Hello", Ext.GetCharacter(host.MyGuid), function() print('test') end)
--Mods.LeaderLib.Timer.StartObjectTimer("TestTimer", host.MyGuid, 1500, {UUID = host.MyGuid, Success=true, ID = "Yoyoyo", Damage=54, [10]="Yes"}); Mods.LeaderLib.Timer.StartObjectTimer("TestTimer", "bbca13e7-5ea3-4da2-82bd-8a0a3d23c979", 5000, {UUID = "bbca13e7-5ea3-4da2-82bd-8a0a3d23c979", Success=false, ID = "Idk", Damage=98})
--Timer.StartObjectTimer("TestTimer", "bbca13e7-5ea3-4da2-82bd-8a0a3d23c979", 5000, {UUID = "bbca13e7-5ea3-4da2-82bd-8a0a3d23c979", Success=false, ID = "Idk", Damage=98})
-- Timer.RegisterListener("TestTimer", function(timerName, data, ...)
-- fprint("TestTimer(%s)", Ext.MonotonicTime())
-- print(Lib.inspect(data), ...)
-- end) |
local function RequireOwner(args, client, msg)
if (msg.author.id == client.owner.id) then
return true
else
return false, 'This command can only be run by the owner of the bot'
end
end
local function RequireXPermissions(user, err, args, client, msg)
if not msg.guild then
return true
end
if type(args) ~= 'table' then args = {args} end
local perms = user:getPermissions()
for k,v in pairs(args) do
if not perms:has(v) then
return false, 'Command requires '..err..' to have permission: '.. v
end
end
return true
end
local function RequireUserPermissions(args, client, msg)
return RequireXPermissions(msg.member,'user', args, client, msg)
end
local function RequireBotPermissions(args, client, msg)
return RequireXPermissions(msg.guild and msg.guild.me,'bot', args, client, msg)
end
local function RequireGuild(args, client, msg)
if not msg.guild then return false, 'Command must be run in a guild' end
if not args then return true end
if type(args) == 'table' then
for k,v in pairs(args) do
if v == msg.guild.id then
return true
end
end
return false, 'Command cannot be run in this guild'
else
return msg.guild.id == args, 'Command cannot be run in this guild'
end
end
local function RequireNSFW(args, client, msg)
return msg.channel.nsfw, 'Command must be run in a NSFW channel'
end
local function RequireDM(args, client, msg)
return not msg.guild, 'Command must be run in a private channel'
end
local function RequireUser(args, client, msg)
if type(args) == 'string' then args = {args} end
for k,v in pairs(args) do
if v == msg.author.id then
return true
end
end
return false, 'Command cannot be run by this user'
end
local preconditions = {
RequireOwner = RequireOwner,
RequireUserPermission = RequireUserPermissions,
RequireUserPermissions = RequireUserPermissions,
RequireBotPermissions = RequireBotPermissions,
RequireBotPermission = RequireBotPermissions,
RequireGuild = RequireGuild,
RequireNSFW = RequireNSFW,
RequireUser = RequireUser,
}
return preconditions
|
match_anim_layout=
{
name="match_anim_layout",type=0,typeName="View",time=0,x=0,y=0,width=0,height=0,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1
}
return match_anim_layout; |
--[[------------------------------------------------------
lk.Morph test
-------------
...
--]]------------------------------------------------------
require 'lubyk'
local should = test.Suite('lk.Morph')
local function makeMorph(t, filepath)
local morph = lk.Morph()
morph.spawn = function(self, ...)
t.spawn = ...
end
morph.process_watch = {
}
function morph.process_watch:process(name)
return {}
end
if filepath then
morph:openFile(filepath)
end
return morph
end
function should.teardown()
-- clear _views
lk.rmTree(fixture.path('project/_views'), true)
lk.rmTree(fixture.path('_views'), true)
end
function should.loadCode()
assertTrue(lk.Morph)
end
function should.createEmptyFile(t)
local lkp = fixture.path('empty.lkp')
lk.rmFile(lkp)
assertFalse(lk.exist(lkp))
local morph = makeMorph(t, lkp)
assertTrue(lk.exist(lkp))
lk.rmFile(lkp)
end
function should.readLkpFile(t)
local lkp = fixture.path('project/example.lkp')
local morph = makeMorph(t, lkp)
assertEqual(0, morph.lubyk.version.major)
assertEqual(3, morph.lubyk.version.minor)
assertEqual('saturn', morph.processes.foobar.host)
end
function should.saveToFile(t)
local lkp = fixture.path('empty.lkp')
lk.rmFile(lkp)
local morph = makeMorph(t, lkp)
morph.processes.hello = {host='waga', dir='hello'}
morph.private.writeFile(morph)
-- should have created empty.lkp with all data
local data = yaml.load(lk.content(lkp))
assertEqual(0, data.lubyk.version.major)
assertEqual(5, data.lubyk.version.minor)
assertEqual('waga', data.processes.hello.host)
lk.rmFile(lkp)
end
function should.createFilesOnNewProcess(t)
local lkp = fixture.path('empty.lkp')
local hello = fixture.path('hello')
lk.rmFile(lkp)
lk.rmTree(hello)
local morph = makeMorph(t, lkp)
morph.private.process.add(morph, 'hello', {host='waga'})
-- should create 'hello' directory and 'hello/_patch.yml'
assertEqual('directory', lk.fileType(hello))
assertEqual('file', lk.fileType(hello .. '/_patch.yml'))
-- should have written changes to empty.lkp
local data = yaml.load(lk.content(lkp))
assertEqual(0, data.lubyk.version.major)
assertEqual(5, data.lubyk.version.minor)
assertEqual('waga', data.processes.hello.host)
lk.rmFile(lkp)
lk.rmTree(hello)
end
function should.dump(t)
local lkp = fixture.path('project/example.lkp')
local morph = makeMorph(t, lkp)
local data = morph:dump()
assertEqual(0, data.lubyk.version.major)
assertEqual(3, data.lubyk.version.minor)
assertEqual('', data.processes.bang)
assertEqual('inline', data.processes.foobar.dir)
end
test.all()
|
return {
id = 11,
text = {key='/demo/1',text="测试1"},
} |
--
assert(StormFox.Env,"Missing framework!")
local snd_glass = Sound("stormfox/rain-glass.wav")
local snd_nextto = Sound("stormfox/rain-light-outside.wav")
local snd_direct = Sound("stormfox/rain-light.wav")
local snd_roof = Sound("stormfox/rain_roof.wav")
local snd_windloop = Sound("ambient/ambience/wind_light02_loop.wav")
local snd_windgustlvl = {}
snd_windgustlvl[1] = {Sound("ambient/wind/wind_hit2.wav"),Sound("ambient/wind/wind_hit1.wav")}
snd_windgustlvl[2] = {Sound("ambient/wind/wind_med1.wav"),Sound("ambient/wind/wind_med2.wav")}
snd_windgustlvl[3] = {Sound("ambient/wind/windgust.wav"),Sound("ambient/wind/windgust_strong.wav")}
_STORMFOX_SOUNDTAB = _STORMFOX_SOUNDTAB or {}
-- Handles sounds by distance
local function playSound(datatab,lvl,snd)
if not _STORMFOX_SOUNDTAB[datatab] then
_STORMFOX_SOUNDTAB[datatab] = CreateSound(LocalPlayer(),snd)
_STORMFOX_SOUNDTAB[datatab]:SetSoundLevel( 0 )
end
if _STORMFOX_SOUNDTAB[datatab]:IsPlaying() and lvl <= 0 then
_STORMFOX_SOUNDTAB[datatab]:FadeOut(0.2)
elseif lvl >= 0 then
if not _STORMFOX_SOUNDTAB[datatab]:IsPlaying() then
_STORMFOX_SOUNDTAB[datatab]:PlayEx(lvl,100)
else
_STORMFOX_SOUNDTAB[datatab]:ChangeVolume(lvl)
end
end
end
local min,max,clamp = math.min,math.max,math.Clamp
hook.Add("StormFox - EnvUpdate","StormFox - RainSounds",function()
if not LocalPlayer() then return end
local con = GetConVar("sf_allow_rainsound")
-- Don't play any sound if con is set
local Gauge = StormFox.GetData("Gauge",0) -- How much rain
local temp = StormFox.GetNetworkData("Temperature",20) -- Is snow
if not con:GetBool() or Gauge <= 0 or not StormFox.EFEnabled() then
playSound("Windows",0,snd_glass)
playSound("Outdoors",0,snd_direct)
playSound("Nextto",0,snd_nextto)
playSound("Roof",0,snd_roof)
return
end
local tempamount = max(0.14 * temp + 0.29,0)
local soundAmmount = Gauge / 10 * tempamount
playSound("DirectRain",soundAmmount * (StormFox.Env.IsInRain() and 1 or 0),snd_direct)
playSound("Window",min(StormFox.Env.FadeDistanceToWindow() * soundAmmount * 0.4,0.4),snd_glass)
local next_to = 0
if StormFox.Env.NearOutside() then
if StormFox.Env.IsOutside() then
next_to = 1
else
next_to = 0.5
end
elseif StormFox.Env.IsOutside() then
next_ro = 1
end
playSound("Nextto",next_to * soundAmmount * 0.5,snd_nextto)
playSound("Roof",StormFox.Env.FadeDistanceToRoof() * soundAmmount * 0.2,snd_roof)
end)
local windGust = 0
local clamp = math.Clamp
hook.Add("StormFox - EnvUpdate","StormFox - WindSounds",function()
if not LocalPlayer() then return end
local con = GetConVar("sf_allow_windsound")
-- Don't play any sound if con is set
local Wind = math.floor(StormFox.GetNetworkData("Wind",0)) -- How much rain
local temp = StormFox.GetData("Temperature",20) -- Is snow
if not con:GetBool() or Wind <= 0 then
playSound("Wind",0,snd_windloop)
return
end
local inWind = StormFox.Env.IsInRain()
local nearWindow = StormFox.Env.FadeDistanceToWindow()
local nearOutside = StormFox.Env.NearOutside()
local isOutside = StormFox.Env.IsOutside()
local windAmount = 0
if inWind then
windAmount = 1
elseif isOutside then
windAmount = 0.75
elseif nearOutside then
windAmount = 0.5
else
windAmount = 0.5 * nearWindow
end
if windGust <= SysTime() then
windGust = SysTime() + math.random(10,30)
local lvl = math.floor(math.Round(Wind / 6))
if lvl < 1 then return end
lvl = clamp(lvl,1,#snd_windgustlvl)
if inWind then
LocalPlayer():EmitSound(table.Random(snd_windgustlvl[lvl]),75,100,Wind / 20 * windAmount * 0.2)
elseif nearOutside then
LocalPlayer():EmitSound(table.Random(snd_windgustlvl[lvl]),75,100,Wind / 20 * windAmount * 0.2)
end
end
local nn = clamp(Wind / 20 * windAmount,0,1)
playSound("Wind",nn * 0.2,snd_windloop)
end)
local conVar = GetConVar("sf_disableambient_sounds")
hook.Add("EntityEmitSound","StormFox BlockSounds",function(data)
if not conVar then return end
if not conVar:GetInt() then return end
if not IsValid(data.Entity) then return end
if not data.Entity:IsWorld() then return end
if data.OriginalSoundName:sub(0,8) ~= "ambient/" then return end
return false
end) |
-- << Services >> --
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
-- << Constants >> --
local CLIENT = script.Parent.Parent
local PLAYER = Players.LocalPlayer
local GUI = PLAYER:WaitForChild("PlayerGui")
-- << Modules >> --
local DataValues = require(CLIENT.DataValues)
local FS = require(ReplicatedStorage.Scripts.Modules.FastSpawn)
-- << Variables >> --
local TutorialScreen = GUI:WaitForChild("TutorialScreen")
------------------------------
TutorialScreen.Close.MouseButton1Down:Connect(function()
TutorialScreen.Enabled = false
end)
return function(Namer)
TutorialScreen.Close.Visible = false
for _,OtherTuts in ipairs(TutorialScreen.Helps:GetChildren()) do
if OtherTuts:IsA("Frame") or OtherTuts:IsA("ScrollingFrame") then
OtherTuts.Visible = false
end
end
if TutorialScreen.Helps:FindFirstChild(Namer) then
if DataValues.ControllerType == "Touch" then
TutorialScreen.Helps[Namer].Position = UDim2.new(.1,0,.1,0)
TutorialScreen.Helps[Namer].Size = UDim2.new(.8,0,.65,0)
TutorialScreen.Close.Position = UDim2.new(.3,0,.85,0)
TutorialScreen.Close.Size = UDim2.new(.4,0,.1,0)
end
TutorialScreen.Helps[Namer].Visible = true
TutorialScreen.Enabled = true
end
FS.spawn(function()
wait(5)
TutorialScreen.Close.Visible = true
end)
end |
factorial = function (n)
local f -- allows f to be recursive
f = function (n, a) -- scope of f begins here
return n==0 and a or f(n-1, a*n) -- proper recursive call
end
return f(n, 1)
end
assert(factorial(10) == 3628800)
|
require "ok"
local l = require "lib"
local Data = require "data"
local Space = require "space"
local id = l.id
function _dist( data,space)
data = Data():import("../test/data/raw/auto93.csv")
space = data:space(l.x)
if true then return true end
for _,r1 in pairs(data.rows) do
local n = space:neighbors(r1, data.rows)
local d1, d2 = n[2].d, n[#n].d
assert(d1 < d2)
end
end
ok { _dist = _dist }
|
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('QuestGuru') then return end
function AS:QuestGuru()
AS:SkinFrame(QuestGuru)
AS:SkinFrame(QuestGuru.count)
AS:SkinFrame(QuestGuruScrollFrame.expandAll)
QuestGuru:SetTemplate("Transparent")
-- Skin QuestGuru Buttons
for i = 1, QuestGuru:GetNumChildren() do
local object = select(i, QuestGuru:GetChildren())
if object:IsObjectType('Button') then
if object:GetText() ~= nil then
AS:SkinButton(object, true)
else
AS:SkinCloseButton(object, true)
end
end
end
--Reposition Expand/Collapse Button
QuestGuruScrollFrame.expandAll:ClearAllPoints()
QuestGuruScrollFrame.expandAll:Point('BOTTOMLEFT', QuestGuru, 'TOPLEFT', 10, -53)
--Reposition Show Map Button
QuestGuru.mapButton:ClearAllPoints()
QuestGuru.mapButton:Point('RIGHT', QuestGuru.count, 'RIGHT', 407, 0)
--Resize Expand/Collapse Button
QuestGuruScrollFrame.expandAll:Size(120, 30)
QuestGuruScrollFrame.expandAll:SetFormattedText(" Expand/Collapse ")
--Resize Show Map Button
QuestGuru.mapButton:Size(50, 40)
QuestGuru.mapButton:SetFormattedText(" Quest Log ")
AS:SkinScrollBar(QuestGuruScrollFrameScrollBar)
AS:SkinScrollBar(QuestGuruDetailScrollFrameScrollBar)
QuestGuruInset:StripTextures()
QuestGuruDetailScrollFrame:StripTextures()
QuestGuruScrollFrame:StripTextures()
end
AS:RegisterSkin('QuestGuru', AS.QuestGuru)
|
--[[
Title: KeepworkService Session
Author(s): big
Date: 2019.09.22
Place: Foshan
use the lib:
------------------------------------------------------------
local KeepworkServiceSession = NPL.load('(gl)Mod/WorldShare/service/KeepworkService/Session.lua')
------------------------------------------------------------
]]
-- libs
local KeepWorkItemManager = NPL.load('(gl)script/apps/Aries/Creator/HttpAPI/KeepWorkItemManager.lua')
-- service
local KeepworkService = NPL.load('../KeepworkService.lua')
local KpChatChannel = NPL.load('(gl)script/apps/Aries/Creator/Game/Areas/ChatSystem/KpChatChannel.lua')
local KeepworkServiceSchoolAndOrg = NPL.load('(gl)Mod/WorldShare/service/KeepworkService/SchoolAndOrg.lua')
local SyncServiceCompare = NPL.load('(gl)Mod/WorldShare/service/SyncService/Compare.lua')
-- api
local KeepworkUsersApi = NPL.load('(gl)Mod/WorldShare/api/Keepwork/Users.lua')
local KeepworkKeepworksApi = NPL.load('(gl)Mod/WorldShare/api/Keepwork/KeepworkKeepworksApi.lua')
local KeepworkOauthUsersApi = NPL.load('(gl)Mod/WorldShare/api/Keepwork/OauthUsers.lua')
local KeepworkSocketApi = NPL.load('(gl)Mod/WorldShare/api/Socket/Socket.lua')
local AccountingVipCodeApi = NPL.load('(gl)Mod/WorldShare/api/Accounting/ParacraftVipCode.lua')
local KeepworkDragonBoatApi = NPL.load('(gl)Mod/WorldShare/api/Keepwork/DragonBoatApi.lua')
-- database
local SessionsData = NPL.load('(gl)Mod/WorldShare/database/SessionsData.lua')
-- helper
local Validated = NPL.load('(gl)Mod/WorldShare/helper/Validated.lua')
-- config
local Config = NPL.load('(gl)Mod/WorldShare/config/Config.lua')
local Encoding = commonlib.gettable('commonlib.Encoding')
local KeepworkServiceSession = NPL.export()
function KeepworkServiceSession:LongConnectionInit(callback)
KeepworkSocketApi:Connect(function(connection)
if not connection then
return false
end
if connection.inited then
return nil
end
if not KpChatChannel.client then
KpChatChannel.client = connection
KpChatChannel.client:AddEventListener('OnOpen', KpChatChannel.OnOpen, KpChatChannel)
KpChatChannel.client:AddEventListener('OnMsg', KpChatChannel.OnMsg, KpChatChannel)
KpChatChannel.client:AddEventListener('OnClose', KpChatChannel.OnClose, KpChatChannel)
end
connection:AddEventListener('OnOpen', function(self)
local isDebugSocket = false
if isDebugSocket then
LOG.std('KeepworkServiceSession', 'debug', 'LongConnectionInit', 'Connected client')
end
end, connection)
connection:AddEventListener('OnMsg', self.OnMsg, connection)
connection.uiCallback = callback
connection.inited = true
end)
end
function KeepworkServiceSession:OnMsg(msg)
LOG.std('KeepworkServiceSession', 'debug', 'OnMsg', 'data: %s', NPL.ToJson(msg.data))
if not msg or not msg.data then
return false
end
if msg.data.sio_pkt_name and msg.data.sio_pkt_name == 'event' then
if msg.data.body and msg.data.body[1] == 'app/msg' then
local connection = KeepworkSocketApi:GetConnection()
if type(connection.uiCallback) == 'function' then
connection.uiCallback(msg.data.body[2])
end
end
end
end
function KeepworkServiceSession:LoginSocket()
if not self:IsSignedIn() then
return false
end
local platform
if System.os.GetPlatform() == 'mac' or System.os.GetPlatform() == 'win32' then
platform = 'PC'
else
platform = 'MOBILE'
end
local machineCode = SessionsData:GetDeviceUUID()
KeepworkSocketApi:SendMsg('app/login', { platform = platform, machineCode = machineCode })
end
function KeepworkServiceSession:OnWorldLoad()
if not self.riceMode then
return
end
if self.riceMode == 'create' or
self.riceMode == 'explorer' or
self.riceMode == 'work' or
self.riceMode == 'study' then
KeepworkServiceSession:StartRiceTimer()
end
end
function KeepworkServiceSession:OnWillLeaveWorld()
-- self:StopRiceTimer()
end
function KeepworkServiceSession:IsSignedIn()
local token = Mod.WorldShare.Store:Get('user/token')
local bLoginSuccessed = Mod.WorldShare.Store:Get('user/bLoginSuccessed')
if token ~= nil and bLoginSuccessed then
return true
else
return false
end
end
function KeepworkServiceSession:Login(account, password, callback)
local machineCode = SessionsData:GetDeviceUUID()
local platform
if System.os.GetPlatform() == 'mac' or System.os.GetPlatform() == 'win32' then
platform = 'PC'
else
platform = 'MOBILE'
end
local params = {
username = account,
password = password,
platform = platform,
machineCode = machineCode
}
KeepworkUsersApi:Login(
params,
callback,
callback
)
end
function KeepworkServiceSession:LoginDirectly(account, password, callback)
if not callback and type(callback) ~= 'function' then
return
end
self:Login(
account,
password,
function(response, err)
if err ~= 200 then
if response and response.code and response.message then
callback(false, format(L'*%s(%d)', response.message, response.code), 'RESPONSE')
else
if err == 0 then
callback(false, format(L'*网络异常或超时,请检查网络(%d)', err), 'NETWORK')
else
callback(false, format(L'*系统维护中(%d)', err), 'SERVER')
end
end
return
end
self:LoginResponse(response, err, callback)
end
)
end
function KeepworkServiceSession:LoginAndBindThirdPartyAccount(account, password, oauthToken, callback)
local machineCode = SessionsData:GetDeviceUUID()
local platform
if System.os.GetPlatform() == 'mac' or System.os.GetPlatform() == 'win32' then
platform = 'PC'
else
platform = 'MOBILE'
end
local params = {
username = account,
password = password,
platform = platform,
machineCode = machineCode,
oauthToken = oauthToken
}
KeepworkUsersApi:Login(
params,
callback,
callback
)
end
function KeepworkServiceSession:LoginWithToken(token, callback)
KeepworkUsersApi:Profile(token, callback, callback)
end
function KeepworkServiceSession:SetUserLevels(response, callback)
local userType = {}
local function Handle()
if response.orgAdmin and response.orgAdmin == 1 then
userType.orgAdmin = true
end
if response.tLevel and response.tLevel > 0 then
userType.teacher = true
Mod.WorldShare.Store:Set('user/tLevel', response.tLevel)
end
if response.student and response.student == 1 then
userType.student = true
end
if response.freeStudent and response.freeStudent == 1 then
userType.freeStudent = true
end
if not userType.teacher and not userType.student and not userType.orgAdmin then
userType.plain = true
end
Mod.WorldShare.Store:Set('user/userType', userType)
if callback and type(callback) == 'function' then
callback()
end
end
if not response then
self:Profile(function(data, err)
response = data
Handle()
end)
else
Handle()
end
end
function KeepworkServiceSession:LoginResponse(response, err, callback)
if err ~= 200 or type(response) ~= 'table' then
return
end
-- login api success ↓
local token = response['token']
local userId = response['id'] or 0
local username = response['username'] or ''
local nickname = response['nickname'] or ''
local realname = response['realname'] or ''
local paraWorldId = response['paraWorldId'] or nil
local isVipSchool = false
if not response.realname then
Mod.WorldShare.Store:Set('user/isVerified', false)
else
Mod.WorldShare.Store:Set('user/isVerified', true)
end
if not response.cellphone and not response.email then
Mod.WorldShare.Store:Set('user/isBind', false)
else
Mod.WorldShare.Store:Set('user/isBind', true)
end
Mod.WorldShare.Store:Set('world/paraWorldId', paraWorldId)
self:SetUserLevels(response)
if response.vip and response.vip == 1 then
Mod.WorldShare.Store:Set('user/isVip', true)
else
Mod.WorldShare.Store:Set('user/isVip', false)
end
if response.school and response.school.isVip == 1 then
isVipSchool = true
end
if response and response.region and type(response.region) == 'table' then
Mod.WorldShare.Store:Set('user/region', response.region)
end
Mod.WorldShare.Store:Set('user/bLoginSuccessed', true)
local tokenExpire
if response.tokenExpire then
tokenExpire = os.time() + tonumber(response.tokenExpire)
end
if response.mode ~= 'auto' then
self:SaveSigninInfo(
{
account = username,
password = response.password,
loginServer = KeepworkService:GetEnv(),
token = token,
autoLogin = response.autoLogin,
rememberMe = response.rememberMe,
tokenExpire = tokenExpire,
isVip = Mod.WorldShare.Store:Get('user/isVip'),
userType = Mod.WorldShare.Store:Get('user/userType')
}
)
end
-- for follow api
Mod.WorldShare.Store:Set('user/token', token)
-- get user orginfo
KeepworkServiceSchoolAndOrg:GetMyAllOrgsAndSchools(function(schoolData, orgData)
if not schoolData and not orgData then
if callback and type(callback) == 'function' then
callback(false, L'获取学校或机构信息失败')
end
return
end
local hasJoinedSchool = false
local hasJoinedOrg = false
if type(schoolData) == 'table' and schoolData.regionId then
hasJoinedSchool = true
end
if type(orgData) == 'table' and #orgData > 0 then
hasJoinedOrg = true
Mod.WorldShare.Store:Set('user/myOrg', orgData[1] or {})
for key, item in ipairs(orgData) do
if item and item.type and item.type == 4 then
hasJoinedSchool = true
break
end
end
end
if hasJoinedSchool then
Mod.WorldShare.Store:Set('user/hasJoinedSchool', true)
else
Mod.WorldShare.Store:Set('user/hasJoinedSchool', false)
end
local Login = Mod.WorldShare.Store:Action('user/Login')
Login(token, userId, username, nickname, realname, isVipSchool)
GameLogic.GetFilters():apply_filters('OnKeepWorkLogin', true)
-- update enter world info
if Mod.WorldShare.Store:Get('world/isEnterWorld') then
SyncServiceCompare:GetCurrentWorldInfo(function()
if callback and type(callback) == 'function' then
callback(true)
end
end)
else
if callback and type(callback) == 'function' then
callback(true)
end
end
end)
self:ResetIndulge()
self:LoginSocket()
end
function KeepworkServiceSession:Logout(mode, callback)
if self:IsSignedIn() then
local username = Mod.WorldShare.Store:Get('user/username')
self:SaveSigninInfo(
{
account = username,
loginServer = KeepworkService:GetEnv(),
autoLogin = false,
rememberMe = false,
}
)
if not mode or mode ~= 'KICKOUT' then
KeepworkUsersApi:Logout(function()
KeepworkSocketApi:SendMsg('app/logout', {})
local Logout = Mod.WorldShare.Store:Action('user/Logout')
Logout()
self:ResetIndulge()
Mod.WorldShare.Store:Remove('user/bLoginSuccessed')
if callback and type(callback) == 'function' then
callback()
end
end)
else
KeepworkSocketApi:SendMsg('app/logout', {})
local Logout = Mod.WorldShare.Store:Action('user/Logout')
Logout()
self:ResetIndulge()
Mod.WorldShare.Store:Remove('user/bLoginSuccessed')
if callback and type(callback) == 'function' then
callback()
end
end
end
end
function KeepworkServiceSession:RegisterWithAccount(username, password, callback, autoLogin)
if not username or not password then
return
end
local params = {
username = username,
password = password,
channel = 3
}
KeepworkUsersApi:Register(
params,
function(registerData, err)
if registerData.id then
self:Login(
username,
password,
function(loginData, err)
if err ~= 200 then
registerData.message = L'注册成功,登录失败'
registerData.code = 9
if type(callback) == 'function' then
callback(registerData)
end
return false
end
if autoLogin ~= nil then
loginData.autoLogin = autoLogin
else
loginData.autoLogin = true
end
loginData.rememberMe = nil
loginData.password = nil
self:LoginResponse(loginData, err, function()
if type(callback) == 'function' then
callback(registerData)
end
end)
end
)
return true
end
if type(callback) == 'function' then
callback(registerData)
end
end,
function(data, err)
if type(callback) == 'function' then
if type(data) == 'table' and data.code then
callback(data)
else
callback({ message = L'未知错误', code = err})
end
end
end,
{ 400 }
)
end
function KeepworkServiceSession:RegisterWithPhoneAndLogin(username, cellphone, cellphoneCaptcha, password, autoLogin, rememberMe, callback)
if not cellphone or not cellphoneCaptcha or not password then
return
end
local params = {
username = username,
cellphone = cellphone,
captcha = cellphoneCaptcha,
password = password,
channel = 3,
isBind = true
}
KeepworkUsersApi:Register(
params,
function(registerData, err)
if registerData.id then
self:Login(
username,
password,
function(loginData, err)
if err ~= 200 then
registerData.message = L'注册成功,登录失败'
registerData.code = 9
if type(callback) == 'function' then
callback(registerData)
end
return false
end
loginData.autoLogin = autoLogin
loginData.rememberMe = rememberMe
loginData.password = password
self:LoginResponse(loginData, err, function()
if type(callback) == 'function' then
callback(registerData)
end
end)
end
)
return true
end
if type(callback) == 'function' then
callback(registerData)
end
end,
function(data, err)
if type(callback) == 'function' then
if type(data) == 'table' and data.code then
callback(data)
else
callback({ message = L'未知错误', code = err})
end
end
end,
{ 400 }
)
end
function KeepworkServiceSession:RegisterWithPhone(username, cellphone, cellphoneCaptcha, password, callback)
if not cellphone or not cellphoneCaptcha or not password then
return
end
local params = {
username = username,
cellphone = cellphone,
captcha = cellphoneCaptcha,
password = password,
channel = 3,
isBind = true
}
KeepworkUsersApi:Register(
params,
function(registerData, err)
if registerData.id then
self:Login(
username,
password,
function(loginData, err)
if err ~= 200 then
registerData.message = L'注册成功,登录失败'
registerData.code = 9
if type(callback) == 'function' then
callback(registerData)
end
return false
end
loginData.autoLogin = true
loginData.rememberMe = nil
loginData.password = nil
self:LoginResponse(loginData, err, function()
if type(callback) == 'function' then
callback(registerData)
end
end)
end
)
return true
end
if type(callback) == 'function' then
callback(registerData)
end
end,
function(data, err)
if type(callback) == 'function' then
if type(data) == 'table' and data.code then
callback(data)
else
callback({ message = L'未知错误', code = err})
end
end
end,
{ 400 }
)
end
function KeepworkServiceSession:Register(username, password, captcha, cellphone, cellphoneCaptcha, isBind, callback)
if type(username) ~= 'string' or
type(password) ~= 'string' or
type(captcha) ~= 'string' or
type(cellphone) ~= 'string' or
type(cellphoneCaptcha) ~= 'string' then
return false
end
local params
if #cellphone == 11 then
-- certification
params = {
username = username,
password = password,
captcha = cellphoneCaptcha,
channel = 3,
cellphone = cellphone,
isBind = isBind
}
else
-- no certification
params = {
username = username,
password = password,
key = Mod.WorldShare.Store:Get('user/captchaKey'),
captcha = captcha,
channel = 3
}
end
KeepworkUsersApi:Register(
params,
function(registerData, err)
if registerData.id then
self:Login(
username,
password,
function(loginData, err)
if err ~= 200 then
registerData.message = L'注册成功,登录失败'
registerData.code = 9
if type(callback) == 'function' then
callback(registerData)
end
return false
end
loginData.autoLogin = autoLogin
loginData.rememberMe = rememberMe
loginData.password = password
self:LoginResponse(loginData, err, function()
if type(callback) == 'function' then
callback(registerData)
end
end)
end
)
return true
end
if type(callback) == 'function' then
callback(registerData)
end
end,
function(data, err)
if type(callback) == 'function' then
if type(data) == 'table' and data.code then
callback(data)
else
callback({ message = L'未知错误', code = err})
end
end
end,
{ 400 }
)
end
function KeepworkServiceSession:RegisterAndBindThirdPartyAccount(username, password, oauthToken, callback)
if type(username) ~= 'string' or
type(password) ~= 'string' or
type(oauthToken) ~= 'string' then
return false
end
local params = {
username = username,
password = password,
oauthToken = oauthToken,
channel = 3
}
KeepworkUsersApi:Register(
params,
function(registerData, err)
if registerData.id then
self:Login(
username,
password,
function(loginData, err)
if err ~= 200 then
registerData.message = L'注册成功,登录失败'
registerData.code = 9
if type(callback) == 'function' then
callback(registerData)
end
return false
end
loginData.autoLogin = autoLogin
loginData.rememberMe = rememberMe
loginData.password = password
self:LoginResponse(loginData, err, function()
if type(callback) == 'function' then
callback(registerData)
end
end)
end
)
return true
end
if type(callback) == 'function' then
callback(registerData)
end
end,
function(data, err)
if type(callback) == 'function' then
callback({ message = '', code = err})
end
end,
{ 400 }
)
end
function KeepworkServiceSession:FetchCaptcha(callback)
KeepworkKeepworksApi:FetchCaptcha(function(data, err)
if err == 200 and type(data) == 'table' then
Mod.WorldShare.Store:Set('user/captchaKey', data.key)
if type(callback) == 'function' then
callback()
end
end
end)
end
function KeepworkServiceSession:GetCaptcha()
local captchaKey = Mod.WorldShare.Store:Get('user/captchaKey')
if not captchaKey or type(captchaKey) ~= 'string' then
return ''
end
return KeepworkService:GetCoreApi() .. '/keepworks/captcha/' .. captchaKey
end
function KeepworkServiceSession:GetPhoneCaptcha(phone, callback)
if not phone or type(phone) ~= 'string' then
return false
end
KeepworkUsersApi:CellphoneCaptcha(phone, callback, callback)
end
function KeepworkServiceSession:ClassificationPhone(cellphone, captcha, callback)
KeepworkUsersApi:RealName(
cellphone,
captcha,
function(data, err)
if callback and type(callback) == 'function' then
Mod.WorldShare.Store:Set('user/isVerified', true)
callback(data, err, true)
end
end,
function(data, err)
if callback and type(callback) == 'function' then
callback(data, err, false)
end
end,
{ 400 }
)
end
function KeepworkServiceSession:BindPhone(cellphone, captcha, callback)
if not cellphone or type(cellphone) ~= 'string' or not captcha or type(captcha) ~= 'string' then
return false
end
KeepworkUsersApi:BindPhone(cellphone, captcha, callback, callback)
end
function KeepworkServiceSession:ClassificationAndBindPhone(cellphone, captcha, callback)
if not cellphone or type(cellphone) ~= 'string' or not captcha or type(captcha) ~= 'string' then
return false
end
KeepworkUsersApi:ClassificationAndBindPhone(cellphone, captcha, callback, callback)
end
function KeepworkServiceSession:GetEmailCaptcha(email, callback)
if not email or type(email) ~= 'string' then
return false
end
KeepworkUsersApi:EmailCaptcha(email, callback, callback)
end
function KeepworkServiceSession:BindEmail(email, captcha, callback)
if not email or type(email) ~= 'string' or not captcha or type(captcha) ~= 'string' then
return false
end
KeepworkUsersApi:BindEmail({
email = email,
captcha = captcha,
isBind = true
}, callback, callback)
end
function KeepworkServiceSession:ResetPassword(key, password, captcha, callback)
if type(key) ~= 'string' or type(password) ~= 'string' or type(captcha) ~= 'string' then
return false
end
KeepworkUsersApi:ResetPassword({
key = key,
password = password,
captcha = captcha
}, callback, nil, { 400 })
end
-- @param usertoken: keepwork user token
function KeepworkServiceSession:Profile(callback, token)
if not token then
token = Mod.WorldShare.Store:Get('user/token')
end
KeepworkUsersApi:Profile(token, callback, callback)
end
function KeepworkServiceSession:GetCurrentUserToken()
if Mod.WorldShare.Store:Get('user/token') then
return Mod.WorldShare.Store:Get('user/token')
end
end
-- @param info: if nil, we will delete the login info.
function KeepworkServiceSession:SaveSigninInfo(info)
if not info then
return false
end
SessionsData:SaveSession(info)
end
-- @return nil if not found or {account, password, loginServer, autoLogin}
function KeepworkServiceSession:LoadSigninInfo()
local sessionsData = SessionsData:GetSessions()
if sessionsData and sessionsData.selectedUser then
for key, item in ipairs(sessionsData.allUsers) do
if item.value == sessionsData.selectedUser then
return item.session
end
end
else
return nil
end
end
-- return nil or user token in url protocol
function KeepworkServiceSession:GetUserTokenFromUrlProtocol()
local cmdline = ParaEngine.GetAppCommandLine()
local urlProtocol = string.match(cmdline or '', 'paracraft://(.*)$')
urlProtocol = Encoding.url_decode(urlProtocol or '')
local usertoken = urlProtocol:match('usertoken=\'([%S]+)\'')
if usertoken then
local SetToken = Mod.WorldShare.Store:Action('user/SetToken')
SetToken(usertoken)
end
return usertoken
end
function KeepworkServiceSession:CheckTokenExpire(callback)
if not self:IsSignedIn() then
return false
end
local token = Mod.WorldShare.Store:Get('user/token')
local info = self:LoadSigninInfo()
local tokenExpire = info and info.tokenExpire or 0
local function ReEntry()
self:Logout()
local currentUser = self:LoadSigninInfo()
if not currentUser or not currentUser.account or not currentUser.password then
if type(callback) == 'function' then
callback(false)
end
return false
end
self:Login(
currentUser.account,
currentUser.password,
function(response, err)
if err ~= 200 then
if type(callback) == 'function' then
callback(false)
end
return false
end
self:LoginResponse(response, err, function()
if type(callback) == 'function' then
callback(true)
end
end)
end
)
end
-- we will not fetch token if token is expire
if tokenExpire <= (os.time() + 1 * 24 * 3600) then
ReEntry()
return false
end
self:Profile(function(data, err)
if err ~= 200 then
ReEntry()
return false
end
if type(callback) == 'function' then
callback(true)
end
end, token)
end
function KeepworkServiceSession:RenewToken()
self:CheckTokenExpire()
Mod.WorldShare.Utils.SetTimeOut(function()
self:RenewToken()
end, 3600 * 1000)
end
function KeepworkServiceSession:PreventIndulge(callback)
local currentServerTime = os.time()
local function Handle()
currentServerTime = currentServerTime + 1
Mod.WorldShare.Store:Set('world/currentServerTime', currentServerTime)
self.gameTime = (self.gameTime or 0) + 1
-- 40 minutes
if self.gameTime == (40 * 60) then
if type(callback) == 'function' then
callback('40MINS')
end
end
-- 2 hours
if self.gameTime == (2 * 60 * 60) then
if type(callback) == 'function' then
callback('2HOURS')
end
end
-- 4 hours
if self.gameTime == (4 * 60 * 60) then
if type(callback) == 'function' then
callback('4HOURS')
end
end
-- 22:30
if os.date('%H:%M', currentServerTime) == '22:30' then
if type(callback) == 'function' then
callback('22:30')
end
end
end
KeepworkKeepworksApi:CurrentTime(
function(data, err)
if not data or not data.timestamp then
return
end
currentServerTime = math.floor(data.timestamp / 1000)
if not self.preventInduleTimer then
self.preventInduleTimer = commonlib.Timer:new(
{
callbackFunc = Handle
}
)
self.preventInduleTimer:Change(0, 1000)
end
end,
function()
-- degraded mode
if not self.preventInduleTimer then
self.preventInduleTimer = commonlib.Timer:new(
{
callbackFunc = Handle
}
)
self.preventInduleTimer:Change(0, 1000)
end
end
)
end
function KeepworkServiceSession:ResetIndulge()
self.gameTime = 0
end
function KeepworkServiceSession:CheckPhonenumberExist(phone, callback)
if not phone or not Validated:Phone(phone) then
return false
end
if type(callback) ~= 'function' then
return false
end
KeepworkUsersApi:GetUserByPhonenumber(
phone,
function(data, err)
if data and #data > 0 then
callback(true)
else
callback(false)
end
end,
function()
callback(false)
end
)
end
function KeepworkServiceSession:CheckUsernameExist(username, callback)
if type(username) ~= 'string' then
return false
end
if type(callback) ~= 'function' then
return false
end
KeepworkUsersApi:GetUserByUsernameBase64(
username,
function(data, err)
if type(data) == 'table' then
callback(true, data)
else
callback(false)
end
end,
function(data, err)
callback(false)
end
)
end
function KeepworkServiceSession:CheckEmailExist(email, callback)
if type(email) ~= 'string' then
return false
end
if type(callback) ~= 'function' then
return false
end
KeepworkUsersApi:GetUserByEmail(
email,
function(data, err)
if type(data) == 'table' and #data > 0 then
callback(true)
else
callback(false)
end
end,
function(data, err)
callback(false)
end
)
end
function KeepworkServiceSession:CheckOauthUserExisted(platform, code, callback)
KeepworkOauthUsersApi:GetOauthUsers(
string.lower(platform),
self:GetOauthClientId(platform),
code,
function(data, err)
if not data or err ~= 200 then
return false
end
if data.username then
if type(callback) == 'function' then
callback(true, data)
end
else
if type(callback) == 'function' then
callback(false, data)
end
end
end)
end
function KeepworkServiceSession:GetOauthClientId(platform)
if type(platform) ~= 'string' then
return ''
end
return Config[platform][KeepworkService:GetEnv()].clientId
end
function KeepworkServiceSession:ActiveVipByCode(key, callback)
if not key or type(key) ~= 'string' then
return false
end
AccountingVipCodeApi:Activate(Mod.WorldShare.Utils.RemoveLineEnding(key), callback, callback)
end
function KeepworkServiceSession:GetUsersByUsernames(usernames, callback)
if not usernames or type(usernames) ~= 'table' then
return false
end
KeepworkUsersApi:Search({ username = { ['$in'] = usernames }}, callback, callback)
end
function KeepworkServiceSession:GetWebToken(callback)
KeepworkUsersApi:WebToken(
function(data, err)
if not data or type(data) ~= 'table' or not data.token then
return false
end
if callback and type(callback) == 'function' then
callback(data.token)
end
end,
function(data, err)
-- do nothing ...
end
)
end
function KeepworkServiceSession:IsRealName()
return Mod.WorldShare.Store:Get('user/isVerified')
end
function KeepworkServiceSession:TextingToInviteRealname(cellphone, name, callback)
KeepworkUsersApi:TextingToInviteRealname(cellphone, name, callback, callback)
end
function KeepworkServiceSession:CellphoneCaptchaVerify(cellphone, cellphone_captcha, callback)
KeepworkUsersApi:CellphoneCaptchaVerify(cellphone, cellphone_captcha, callback, callback)
end
function KeepworkServiceSession:CaptchaVerify(captcha, callback)
KeepworkKeepworksApi:SvgCaptcha(Mod.WorldShare.Store:Get('user/captchaKey'), captcha, callback, callback)
end
function KeepworkServiceSession:GetUserWhere()
local token = Mod.WorldShare.Store:Get('user/token')
if not token then
local whereAnonymousUser = Mod.WorldShare.Store:Get('user/whereAnonymousUser')
return whereAnonymousUser or false
end
local session = SessionsData:GetSessionByUsername(Mod.WorldShare.Store:Get('user/username'))
if session and type(session) == 'table' and session.where then
return session.where
else
return ''
end
end
function KeepworkServiceSession:LoginWithPhoneNumber(cellphone, cellphoneCaptcha, callback)
if not cellphone or type(cellphone) ~= 'string' then
return
end
if not cellphoneCaptcha or type(cellphoneCaptcha) ~= 'string' then
return
end
local machineCode = SessionsData:GetDeviceUUID()
local platform
if System.os.GetPlatform() == 'mac' or
System.os.GetPlatform() == 'win32' then
platform = 'PC'
elseif System.os.GetPlatform() == 'android' or
System.os.GetPlatform() == 'ios' then
platform = 'MOBILE'
else
return
end
local params = {
cellphone = cellphone,
cellphoneCaptcha = cellphoneCaptcha,
platform = platform,
machineCode = machineCode,
}
KeepworkUsersApi:Login(params, callback, callback)
end
function KeepworkServiceSession:CheckVerify()
local isVerified = Mod.WorldShare.Store:Get('user/isVerified')
if isVerified then
-- get newer certificate
if not KeepWorkItemManager.HasGSItem(70014) then
KeepWorkItemManager.DoExtendedCost(40006)
end
end
end
|
--[[lit-meta
name = "creationix/uv"
description = "Shim to use 'luv' as 'uv' for non-luvi based apps using luvit libs"
version = "1.8.0"
]]
return require 'luv'
|
--
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local utils
local common = require("common.common")
local board = require("board.board")
local goutils = require 'utils.goutils'
local utils = require 'utils.utils'
local pl = require 'pl.import_into'()
local dcnn_utils = { }
-- Parameters to use
-- medatory:
-- shuffle_top_n Use topn for sampling, if topn == 1, then we only output the best legal move.
-- codename codename for the model
-- input, feature_type: for customized model, omitted if codename is specified.
-- presample_codename: codename for presample model.
-- temperature: Temperature for presample model (default 1)
-- sample_step: Since which ply we start to use normal model, default is -1
-- optional:
-- usecpu whether to use cpu for evaluation.
-- use_local_model whether we load a local .bin file.
function dcnn_utils.init(options)
-- opt.feature_type and opt.userank are necessary for the game to be played.
local opt = pl.tablex.deepcopy(options)
opt.sample_step = opt.sample_step or -1
opt.temperature = opt.temperature or 1
opt.shuffle_top_n = opt.shuffle_top_n or 1
opt.rank = opt.rank or '9d'
if opt.usecpu == nil or opt.usecpu == false then
utils = require 'utils.utils'
utils.require_cutorch()
else
g_nnutils_only_cpu = true
utils = require 'utils.utils'
end
opt.userank = true
assert(opt.shuffle_top_n >= 1)
-- print("Loading model = " .. opt.input)
opt.input = (opt.codename == "" and opt.input or common.codenames[opt.codename].model_name)
opt.feature_type = (opt.codename == "" and opt.feature_type or common.codenames[opt.codename].feature_type)
opt.attention = { 1, 1, common.board_size, common.board_size }
local model_name = opt.use_local_model and pl.path.basename(opt.input) or opt.input
if opt.verbose then print("Load model " .. model_name) end
local model = torch.load(model_name)
if opt.verbose then print("Load model complete") end
local preSampleModel
local preSampleOpt = pl.tablex.deepcopy(opt)
if opt.temperature > 1 then
if opt.verbose then print("temperature: " , opt.temperature) end
preSampleModel = goutils.getDistillModel(model, opt.temperature)
elseif opt.presample_codename ~= nil and opt.presample_codename ~= false then
local code = common.codenames[opt.presample_codename]
if opt.verbose then print("Load preSampleModel " .. code.model_name) end
preSampleModel = torch.load(code.model_name)
preSampleOpt.feature_type = code.feature_type
else
preSampleModel = model
end
opt.preSampleModel = preSampleModel
opt.preSampleOpt = preSampleOpt
opt.model = model
if opt.valueModel and opt.valueModel ~= "" then opt.valueModel = torch.load(opt.valueModel) end
if opt.verbose then print("dcnn ready!") end
return opt
end
function dcnn_utils.dbg_set()
utils.dbg_set()
end
function dcnn_utils.play(opt, b, player)
-- It will return sortProb, sortInd, value, output
return goutils.play_with_cnn(b, player, opt, opt.rank, opt.model)
end
function dcnn_utils.batch_play(opt, bs)
return goutils.batch_play_with_cnn(bs, opt, opt.rank, opt.model)
end
function dcnn_utils.sample(opt, b, player)
local sortProb, sortInd, value
if b._ply > opt.sample_step then -- after sample, sample from normal model
if opt.debug then print("normal model") end
sortProb, sortInd = goutils.play_with_cnn(b, player, opt, opt.rank, opt.model)
elseif b._ply < opt.sample_step then -- before sample the move, encouraging more diverse moves
if opt.debug then print("presample model") end
sortProb, sortInd = goutils.play_with_cnn(b, player, opt.preSampleOpt, opt.preSampleOpt.rank, opt.preSampleModel)
else
if opt.debug then print("uniform sample") end
sortProb, sortInd = goutils.randomPlay(b, player, opt, opt.rank, opt.model)
end
if opt.debug then
print("ply: ", b._ply)
local j = 1
for k = 1, 20 do
local x, y = goutils.moveIdx2xy(sortInd[k][j])
local check_res, comments = goutils.check_move(b, x, y, player)
if check_res then
-- The move is all right.
utils.dprint(" Move (%d, %d), ind = %d, move = %s, conf = (%f)",
x, y, sortInd[k][j], goutils.compose_move_gtp(x, y, tonumber(player)), sortProb[k][j])
else
utils.dprint(" Skipped Move (%d, %d), ind = %d, move = %s, conf = (%f), Reason = %s",
x, y, sortInd[k][j], goutils.compose_move_gtp(x, y, tonumber(player)), sortProb[k][j], comments)
end
end
end
if opt.valueModel and value then
print("current value: " .. string.format("%.3f", value))
end
-- Apply the moves until we have seen a valid one.
if opt.shuffle_top_n == 1 then
local xf, yf, idx = goutils.tryplay_candidates(b, player, sortProb, sortInd)
return xf, yf
else
local xf, yf, idx = goutils.tryplay_candidates_sample(b, player, sortProb, sortInd, opt.shuffle_top_n)
return xf, yf
end
end
function dcnn_utils.get_value(opt, b, player)
return goutils.get_value(b, player, opt)
end
return dcnn_utils
|
-- Global cooldown spell id
_GlobalCooldown = 61304;
-- Bloodlust effects
_Bloodlust = 2825;
_TimeWrap = 80353;
_Heroism = 32182;
_AncientHysteria = 90355;
_Netherwinds = 160452;
_DrumsOfFury = 178207;
_Exhaustion = 57723;
local INF = 2147483647;
local _Bloodlusts = {_Bloodlust, _TimeWrap, _Heroism, _AncientHysteria, _Netherwinds, _DrumsOfFury};
function MaxDps:SpecName()
local currentSpec = GetSpecialization();
local currentSpecName = currentSpec and select(2, GetSpecializationInfo(currentSpec)) or 'None';
return currentSpecName;
end
function MaxDps:CheckTalents()
self.PlayerTalents = {};
for talentRow = 1, 7 do
for talentCol = 1, 3 do
local _, name, _, sel, _, id = GetTalentInfo(talentRow, talentCol, 1);
if sel then
self.PlayerTalents[id] = name;
end
end
end
end
function MaxDps:HasTalent(talent)
for id, name in pairs(self.PlayerTalents) do
if id == talent or name == talent then
return true;
end
end
return false;
end
function MaxDps:TalentEnabled(talent)
local found = false;
for i=1,7 do
for j=1,3 do
local id, n, x, sel = GetTalentInfo(i,j,GetActiveSpecGroup());
if (id == talent or n == talent) and sel then
found = true;
end
end
end
return found;
end
function MaxDps:PersistentAura(name, unit)
unit = unit or 'player';
local spellName = GetSpellInfo(name);
local aura, _, _, count = UnitAura(unit, spellName);
if aura then
return true, count;
end
return false, 0;
end
function MaxDps:Aura(name, timeShift, filter)
filter = filter or nil;
timeShift = timeShift or 0.2;
local spellName = GetSpellInfo(name) or name;
local _, _, _, count, _, _, expirationTime = UnitAura('player', spellName, nil, filter);
local time = GetTime();
if expirationTime ~= nil and (expirationTime - time) > timeShift then
return true, count, (expirationTime - time);
end
return false, 0, 0;
end
function MaxDps:UnitAura(name, timeShift, unit)
timeShift = timeShift or 0.2;
local spellName = GetSpellInfo(name) or name;
local _, _, _, count, _, _, expirationTime = UnitAura(unit, spellName);
if expirationTime ~= nil and (expirationTime - GetTime()) > timeShift then
return true, count;
end
return false, 0;
end
function MaxDps:TargetAura(name, timeShift)
timeShift = timeShift or 0;
local spellName = GetSpellInfo(name) or name;
local _, _, _, count, _, _, expirationTime = UnitAura('target', spellName, nil, 'PLAYER|HARMFUL');
if expirationTime ~= nil and (expirationTime - GetTime()) > timeShift then
local cd = expirationTime - GetTime() - (timeShift or 0);
return true, cd, count;
end
return false, 0, 0;
end
function MaxDps:EndCast(target)
local t = GetTime();
local c = t * 1000;
local spell, _, _, _, _, endTime = UnitCastingInfo(target or 'player');
local gstart, gduration = GetSpellCooldown(_GlobalCooldown);
local gcd = gduration - (t - gstart);
if gcd < 0 then gcd = 0; end;
if endTime == nil then
return gcd, '', gcd;
end
local timeShift = (endTime - c) / 1000;
if gcd > timeShift then
timeShift = gcd;
end
return timeShift, spell, gcd;
end
function MaxDps:SameSpell(spell1, spell2)
local spellName1 = GetSpellInfo(spell1);
local spellName2 = GetSpellInfo(spell2);
return spellName1 == spellName2;
end
function MaxDps:TargetPercentHealth()
local health = UnitHealth('target');
if health <= 0 then
return 0;
end;
local healthMax = UnitHealthMax('target');
if healthMax <= 0 then
return 0;
end;
return health/healthMax;
end
function MaxDps:GlobalCooldown()
local haste = UnitSpellHaste('player');
local gcd = 1.5 / ((haste / 100) + 1);
if gcd < 1 then
gcd = 1;
end
return gcd;
end
function MaxDps:AttackHaste()
local haste = UnitSpellHaste('player');
return 1/((haste / 100) + 1);
end
function MaxDps:SpellCharges(spell, timeShift)
local currentCharges, maxCharges, cooldownStart, cooldownDuration = GetSpellCharges(spell);
if currentCharges == nil then
local cd = MaxDps:Cooldown(spell, timeShift);
if cd <= 0 then
return 0, 1, 0;
else
return cd, 0, 1;
end
end
local cd = cooldownDuration - (GetTime() - cooldownStart) - (timeShift or 0);
if cd > cooldownDuration then
cd = 0;
end
if cd > 0 then
currentCharges = currentCharges + (1 - (cd / cooldownDuration));
end
return cd, currentCharges, maxCharges;
end
function MaxDps:SpellAvailable(spell, timeShift)
local cd = MaxDps:Cooldown(spell, timeShift);
return cd <= 0, cd;
end
function MaxDps:ExtractTooltip(spell, pattern)
local _pattern = gsub(pattern, "%%s", "([%%d%.,]+)");
if not MaxDpsSpellTooltip then
CreateFrame('GameTooltip', 'MaxDpsSpellTooltip', UIParent, 'GameTooltipTemplate');
MaxDpsSpellTooltip:SetOwner(UIParent, "ANCHOR_NONE")
end
MaxDpsSpellTooltip:SetSpellByID(spell);
for i = 2, 4 do
local line = _G['MaxDpsSpellTooltipTextLeft' .. i];
local text = line:GetText();
if text then
local cost = strmatch(text, _pattern);
if cost then
cost = cost and tonumber((gsub(cost, "%D", "")));
return cost;
end
end
end
return 0;
end
function MaxDps:SetBonus(items)
local c = 0;
for _, item in ipairs(items) do
if IsEquippedItem(item) then
c = c + 1;
end
end
return c;
end
function MaxDps:Cooldown(spell, timeShift)
local start, duration, enabled = GetSpellCooldown(spell);
if enabled and duration == 0 and start == 0 then
return 0;
elseif enabled then
return (duration - (GetTime() - start) - (timeShift or 0));
else
return 100000;
end;
end
function MaxDps:Mana(minus, timeShift)
local _, casting = GetManaRegen();
local mana = UnitPower('player', 0) - minus + (casting * timeShift);
return mana / UnitPowerMax('player', 0), mana;
end
function MaxDps:Bloodlust(timeShift)
-- @TODO: detect exhausted/seated debuff instead of 6 auras
for k, v in pairs (_Bloodlusts) do
if MaxDps:Aura(v, timeShift or 0) then return true; end
end
return false;
end
MaxDps.Spellbook = {};
function MaxDps:FindSpellInSpellbook(spell)
local spellName = GetSpellInfo(spell);
if MaxDps.Spellbook[spellName] then
return MaxDps.Spellbook[spellName];
end
local _, _, offset, numSpells = GetSpellTabInfo(2);
local booktype = 'spell';
for index = offset + 1, numSpells + offset do
local spellID = select(2, GetSpellBookItemInfo(index, booktype));
if spellID and spellName == GetSpellBookItemName(index, booktype) then
MaxDps.Spellbook[spellName] = index;
return index;
end
end
return nil;
end
function MaxDps:IsSpellInRange(spell, unit)
unit = unit or 'target';
local inRange = IsSpellInRange(spell, unit);
if inRange == nil then
local booktype = 'spell';
local myIndex = MaxDps:FindSpellInSpellbook(spell)
if myIndex then
return IsSpellInRange(myIndex, booktype, unit);
end
return inRange;
end
return inRange;
end
function MaxDps:TargetsInRange(spell)
local count = 0;
for i, frame in pairs(C_NamePlate.GetNamePlates()) do
if frame:IsVisible() and MaxDps:IsSpellInRange(spell, frame.UnitFrame.unit) == 1 then
count = count + 1;
end
end
return count;
end
function MaxDps:FormatTime(left)
local seconds = left >= 0 and math.floor((left % 60) / 1 ) or 0;
local minutes = left >= 60 and math.floor((left % 3600) / 60 ) or 0;
local hours = left >= 3600 and math.floor((left % 86400) / 3600) or 0;
local days = left >= 86400 and math.floor((left % 31536000) / 86400) or 0;
local years = left >= 31536000 and math.floor( left / 31536000) or 0;
if years > 0 then
return string.format("%d [Y] %d [D] %d:%d:%d [H]", years, days, hours, minutes, seconds);
elseif days > 0 then
return string.format("%d [D] %d:%d:%d [H]", days, hours, minutes, seconds);
elseif hours > 0 then
return string.format("%d:%d:%d [H]", hours, minutes, seconds);
elseif minutes > 0 then
return string.format("%d:%d [M]", minutes, seconds);
else
return string.format("%d [S]", seconds);
end
end
|
local a,b
a = #b
a= #"foo" |
-- speaker = hs.speech.new()
-- speaker:speak("Hammerspoon is online")
-- hs.notify.new({title="Hammerspoon launch", informativeText="Boss, at your service"}):send()
|
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___/
@Description: SyncAdmin plugin to ban users from your game
@Author: Dominik [VolcanoINC], Hannah Jane [DataSynchronized]
--]]
local command = {}
command.PermissionLevel = 2
command.Shorthand = {"banish"}
command.Params = {"SafePlayer","..."}
command.Usage = "ban Player Reason"
command.Description = [[Bans the player and displays the reason in the initial kick message.]]
command.Init = function(main)
end
command.Run = function(main,user,player,...)
if (SyncAPI.GetPermissionLevel(user) > SyncAPI.GetPermissionLevel(player)) then
if (user == nil) then error("No user found") end
local reason = game:GetService("Chat"):FilterStringForBroadcast(table.concat({...}," "),user)
SyncAPI.Ban(player,reason,0,true)
return true,"Banned user " .. player.Name .. " for reason '" .. reason .. "'"
else
return false,"You cannot run this command on someone with a higher permission level than you."
end
end
return command
|
local SPAM_PATTERNS = {
"[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm]%.[Mm][Ee]/%S+",
"[Tt][Ll][Gg][Rr][Mm]%.[Mm][Ee]/%S+",
"[Aa][Dd][Ff]%.[Ll][Yy]/%S+",
"[Ss][Hh]%.[Ss][Tt]/%S+",
"[Tt]%.[Mm][Ee]/%S+",
"[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm]%.[Dd][Oo][Gg]/%S+",
"[Cc][Hh][Aa][Tt]%.[Ww][Hh][Aa][Tt][Ss][Aa][Pp][Pp]%.[Cc][Oo][Mm]/%S+"
}
local function is_spam(text)
local isit = false
if text ~= nil then
for k, v in ipairs(SPAM_PATTERNS) do
isit = isit or (text:match(v) ~= nil)
end
end
return isit
end
local function is_chan_fwd(msg)
if msg.fwd_from ~= nil then
return msg.fwd_from.peer_type == "channel"
end
return false
end
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = str2emoji(":exclamation:")..' I can\'t kick '..data.user..' but should be kicked'
snoop_msg('I am unable to kick user '..user_id..' from group '..chat_id..'.')
send_msg(data.chat, text, ok_cb, nil)
end
end, {chat=chat, user=user})
end
local function kick_chan_user(user_id, chat_id)
local chat = 'channel#id'..chat_id
local user = 'user#id'..user_id
channel_kick(chat, user, function (data, success, result)
if success ~= 1 then
local text = str2emoji(":exclamation:")..' I can\'t kick '..data.user..' but should be kicked'
snoop_msg('I am unable to kick user '..user_id..' from group '..chat_id..'.')
send_msg(data.chat, text, ok_cb, nil)
end
end, {chat=chat, user=user})
end
local function addexcept_reply(extra, success, result)
local hash = 'anti-spam:exception:'..result.to.peer_id..':'..result.from.peer_id
redis:set(hash, true)
send_large_msg(extra, str2emoji(':information_source:')..' User ID '..result.from.peer_id..' is now exempt from antispam checks.')
end
local function delexcept_reply(extra, success, result)
local hash = 'anti-spam:exception:'..result.to.peer_id..':'..result.from.peer_id
local reply
if redis:get(hash) then
redis:del(hash)
reply = str2emoji(':information_source:')..' User ID '..result.from.peer_id..' is now subject to antispam checks.'
else
reply = str2emoji(':information_source:')..' User ID '..result.from.peer_id..' is not exempt from antispam checks.'
end
send_large_msg(extra, reply)
end
local function run (msg, matches)
if matches[1] ~= nil then
if not is_chat_msg(msg) then
return str2emoji(":exclamation:")..' Anti-spam works only on groups'
else
if is_momod(msg) then
local chat = msg.to.id
local hash = 'anti-spam:enabled:'..chat
if matches[1] == 'addspamexcept' then
if msg.reply_id then
get_message(msg.reply_id, addexcept_reply, get_receiver(msg))
return nil
end
end
if matches[1] == 'delspamexcept' then
if msg.reply_id then
get_message(msg.reply_id, delexcept_reply, get_receiver(msg))
return nil
end
end
if matches[1] == 'enable' then
if matches[2] == 'fwd' then
redis:set(hash..':fwd', true)
return str2emoji(':information_source:')..' Kick on forward enabled on chat'
end
redis:set(hash, true)
return str2emoji(':information_source:')..' Anti-spam enabled on chat'
end
if matches[1] == 'disable' then
if matches[2] == 'fwd' then
redis:del(hash..':fwd')
return str2emoji(':information_source:')..' Kick on forward disabled on chat'
end
redis:del(hash)
return str2emoji(':information_source:')..' Anti-spam disabled on chat'
end
if matches[2] then
hash = 'anti-spam:exception:'..chat..':'..matches[2]
if matches[1] == 'addexcept' then
redis:set(hash, true)
return str2emoji(':information_source:')..' User ID '..matches[2]..' is now exempt from antispam checks.'
end
if matches[1] == 'delexcept' then
if redis:get(hash) then
redis:del(hash)
return str2emoji(':information_source:')..' User ID '..matches[2]..' is now subject to antispam checks.'
else
return str2emoji(':information_source:')..' User ID '..matches[2]..' is not exempt from antispam checks.'
end
end
end
else
return str2emoji(":no_entry_sign:")..' You are not a moderator on this channel'
end
end
end
return nil
end
local function pre_process(msg)
-- Ignore service msg
if msg.service then
print('Service message')
return msg
end
local hash_enable = 'anti-spam:enabled:'..msg.to.id
local enabled = redis:get(hash_enable)
if enabled then
print('Anti-spam enabled')
local real_text
if msg.media ~= nil then
if msg.media.caption ~= nil then
real_text = msg.media.caption
else
real_text = "[media with no caption]"
end
else
if msg.text ~= nil then
real_text = msg.text
end
end
local is_rly_spam = is_spam(real_text)
local hash_enable_fwd = hash_enable..':fwd'
local enabled_fwd = redis:get(hash_enable_fwd)
if enabled_fwd then
is_rly_spam = is_rly_spam or is_chan_fwd(msg)
end
if msg.from.type == 'user' and is_rly_spam then
local receiver = get_receiver(msg)
local user = msg.from.id
local text = str2emoji(":exclamation:")..' User '
if msg.from.username ~= nil then
text = text..' @'..msg.from.username..' ['..user..'] is spamming'
else
text = text..string.gsub(msg.from.print_name, '_', ' ')..' ['..user..'] is spamming'
end
local chat = msg.to.id
local hash_exception = 'anti-spam:exception:'..msg.to.id..':'..msg.from.id
if not is_chat_msg(msg) then
print("Spam not in a chat group!")
elseif user == tostring(our_id) then
print('I won\'t kick myself')
elseif is_momod(msg) then
print('I won\'t kick a mod/admin/sudo!')
elseif redis:get(hash_exception) then
print('User is exempt from antispam checks!')
else
send_msg(receiver, text, ok_cb, nil)
if msg.from.username ~= nil then
snoop_msg('User @'..msg.from.username..' ['..msg.from.id..'] has been found spamming.\nGroup: '..msg.to.print_name..' ['..msg.to.id..']\nText: '..real_text)
else
snoop_msg('User '..string.gsub(msg.from.print_name, '_', ' ')..' ['..msg.from.id..'] has been found spamming.\nGroup: '..msg.to.print_name..' ['..msg.to.id..']\nText: '..real_text)
end
if not is_chan_msg(msg) then
kick_user(user, chat)
else
delete_msg(msg.id, ok_cb, nil)
kick_chan_user(user, chat)
end
return nil
end
end
end
return msg
end
return {
description = 'Plugin to kick spammers from group.',
usage = {
moderator = {
"!antispam <enable>/<disable> : Enable or disable spam checking",
"!antispam <enable>/<disable> fwd : Enable or disable kicking who forwards from channels",
"!antispam <addexcept>/<delexcept> <user_id> : Add user to antispam exceptions",
"#addspamexcept (by reply) : Add user to antispam exceptions",
"#delspamexcept (by reply) : Delete user from antispam exceptions"
},
},
patterns = {
'^!antispam (enable) (fwd)$',
'^!antispam (enable)$',
'^!antispam (disable) (fwd)$',
'^!antispam (disable)$',
'^!antispam (addexcept) (%d+)$',
'^!antispam (delexcept) (%d+)$',
'^#(addspamexcept)$',
'^#(delspamexcept)$'
},
run = run,
pre_process = pre_process
} |
vim.api.nvim_create_augroup('nvim-org-markup', { clear = true })
-- this re-definition simply wraps the callback with a function, so it will
-- use 'require' every time. Slightly slower, but updates when I'm reloading
-- the libraries as I edit the code
vim.api.nvim_create_autocmd('Filetype', {
pattern = 'org',
group = 'nvim-org-markup',
desc = 'Register updating markup highlighting with tree-sitter',
callback = function()
require('org.object.extmarks').update()
vim.treesitter.get_parser(0):register_cbs {
on_bytes = function(...)
require('org.object.extmarks').schedule_on_byte(...)
end,
}
end,
})
|
E = {
CreateBusStop = 'lacheebus:createBusStop', -- Request to create a bus stop
GetBusStops = 'lacheebus:requestBusStops', -- Requests all bus stops
GetRoutes = 'lacheebus:requestRoutes', -- Gets a list of routes
GetRoute = 'lacheebus:requestSpecificRoute', -- Gets a specific route
BeginJob = 'lacheebus:startJob', -- Begin the job
EndJob = 'lacheebus:endJob',
RouteActive = 'lacheebus:routeActive', -- Someone has started this route
RouteDeactive = 'lacheebus:routeDeactive', -- Someone has finished this route
}
-- print('Loaded Events: ')
-- for k, v in pairs(E) do print(k, v) end |
--init.lua
active_tracks = {}
-- jukebox crafting
minetest.register_craft({
output = 'jdukebox:box',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'ores:mese_crystal', 'ores:diamond', 'ores:mese_crystal'},
{'group:wood', 'group:wood', 'group:wood'},
}
})
--jdukebox
minetest.register_node("jdukebox:box", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
})
minetest.register_node("jdukebox:box1", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
drop = "jdukebox:disc_1",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
})
minetest.register_node("jdukebox:box2", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
drop = "jdukebox:disc_2",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
})
minetest.register_node("jdukebox:box3", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
paramtype = "facedir",
drop = "jdukebox:disc_3",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
})
minetest.register_node("jdukebox:box4", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
drop = "jdukebox:disc_4",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
})
minetest.register_node("jdukebox:box5", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
drop = "jdukebox:disc_5",
})
minetest.register_node("jdukebox:box6", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
drop = "jdukebox:disc_6",
})
minetest.register_node("jdukebox:box7", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
drop = "jdukebox:disc_7",
})
minetest.register_node("jdukebox:box8", {
description = "Jukebox",
tiles = {"jdukebox_top.png", "deco_wood_oak_planks.png", "jdukebox_side.png"},
-- sounds = default.node_sounds_wood_defaults(),
--paramtype = "facedir",
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3},
drop = "jdukebox:disc_8",
})
minetest.register_craftitem("jdukebox:disc_1", {
description = "The Evil Sister (Jordach's Mix) - SoundHelix",
inventory_image = "jdukebox_disc_1.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_2", {
description = "The Energetic Rat (Jordach's Mix) - SoundHelix",
inventory_image = "jdukebox_disc_2.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_3", {
description = "Eastern Feeling - Jordach",
inventory_image = "jdukebox_disc_3.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_4", {
description = "Minetest - Jordach",
inventory_image = "jdukebox_disc_4.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_5", {
description = "Credit Roll (Jordach's HD Mix) - Junichi Masuda",
inventory_image = "jdukebox_disc_5.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_6", {
description = "Moonsong (Jordach's Mix) - HeroOfTheWinds",
inventory_image = "jdukebox_disc_6.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_7", {
description = "Synthgroove (Jordach's Mix) - HeroOfTheWinds",
inventory_image = "jdukebox_disc_7.png",
stack_max = 1,
})
minetest.register_craftitem("jdukebox:disc_8", {
description = "The Clueless Frog (Jordach's Mix) - SoundHelix",
inventory_image = "jdukebox_disc_8.png",
stack_max = 1,
})
-- disc crafting
minetest.register_craft({
output = 'jdukebox:disc_1',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:yellow', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_2',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:blue', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_3',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:pink', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_4',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:green', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_5',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:red', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_6',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:white', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_7',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:cyan', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
minetest.register_craft({
output = 'jdukebox:disc_8',
recipe = {
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
{'ores:coal_lump', 'dye:violet', 'ores:coal_lump'},
{'ores:coal_lump', 'ores:coal_lump', 'ores:coal_lump'},
}
})
-- welcome to the jukebox, we got music and discs
minetest.register_on_punchnode(function(pos, node, puncher)
if not puncher then return end
wield = puncher:get_wielded_item():get_name()
jnodename = minetest.get_node(pos)
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_1" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box1"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_1", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box1" then
if wield ~= "jdukebox:disc_1" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_1 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_2" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box2"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_2", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box2" then
if wield ~= "jdukebox:disc_2" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_2 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_3" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box3"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_3", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box3" then
if wield ~= "jdukebox:disc_3" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_3 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_4" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box4"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_4", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box4" then
if wield ~= "jdukebox:disc_4" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_4 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_5" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box5"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_5", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box5" then
if wield ~= "jdukebox:disc_5" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_5 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_6" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box6"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_6", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box6" then
if wield ~= "jdukebox:disc_6" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_6 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_7" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box7"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_7", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box7" then
if wield ~= "jdukebox:disc_7" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_7 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
if jnodename.name == "jdukebox:box" then
if wield == "jdukebox:disc_8" then
puncher:set_wielded_item("")
minetest.set_node(pos, {name="jdukebox:box8"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
active_tracks[puncher:get_player_name()] = minetest.sound_play("jukebox_track_8", {
to_player = puncher:get_player_name(),
--max_hear_distance = 16,
gain = 1,
})
end
end
if jnodename.name == "jdukebox:box8" then
if wield ~= "jdukebox:disc_8" then
lx = pos.x
ly = pos.y+1
lz = pos.z
minetest.add_item({x=lx, y=ly, z=lz}, "jdukebox:disc_8 1")
minetest.set_node(pos, {name="jdukebox:box"})
if active_tracks[puncher:get_player_name()] ~= nil then
minetest.sound_stop(active_tracks[puncher:get_player_name()])
else
--dont die
end
end
end
end) |
#!/usr/bin/env lua
package.path = package.path..";../?.lua"
local glfw = require("moonglfw")
local gl = require("moongl")
local glmath = require("moonglmath")
local new_plane = require("common.plane")
local new_torus = require("common.torus")
local new_teapot = require("common.teapot")
local new_quad = require("common.quad")
local texture = require("common.texture")
local vec3, vec4 = glmath.vec3, glmath.vec4
local mat3, mat4 = glmath.mat3, glmath.mat4
local rotate, translate, scale = glmath.rotate, glmath.translate, glmath.scale
local pi, rad = math.pi, math.rad
local sin, cos = math.sin, math.cos
local exp, log = math.exp, math.log
local fmt = string.format
local TITLE = "Chapter 9 - Night vision effect"
local W, H = 800, 600
-- GLFW/GL initializations
glfw.version_hint(4, 6, 'core')
glfw.window_hint('opengl forward compat', true)
local window = glfw.create_window(W, H, TITLE)
glfw.make_context_current(window)
gl.init()
local angle, speed = pi/4, pi/8 -- rad, rad/s
local animate = false
glfw.set_key_callback(window, function(window, key, scancode, action)
if key == 'escape' and action == 'press' then
glfw.set_window_should_close(window, true)
elseif key == 'space' and action == 'press' then
animate = not animate
end
end)
local projection
local function resize(window, w, h)
W, H = w, h
gl.viewport(0, 0, w, h)
projection = glmath.perspective(rad(60.0), w/h, 0.3, 100.0)
end
glfw.set_window_size_callback(window, resize)
-- Create the shader program
local prog, vsh, fsh = gl.make_program('vertex', "shaders/nightvision.vert",
'fragment', "shaders/nightvision.frag")
gl.delete_shaders(vsh, fsh)
gl.use_program(prog)
-- Get the locations of the uniform variables
local uniforms = {
"Width",
"Height",
"Radius",
"Light.Intensity",
"Light.Position",
"Material.Ka",
"Material.Kd",
"Material.Ks",
"Material.Shininess",
"ModelViewMatrix",
"NormalMatrix",
"MVP",
"RenderTex",
"NoiseTex",
}
local loc = {}
for _,name in ipairs(uniforms) do loc[name] = gl.get_uniform_location(prog, name) end
-- Initialize the uniform variables
resize(window, W, H) -- creates projection
local function set_matrices(model, view, projection)
local mv = view * model
local normal_mv = mat3(mv):inv():transpose()
gl.uniform_matrix4f(loc["ModelViewMatrix"], true, mv)
gl.uniform_matrix3f(loc["NormalMatrix"], true, normal_mv)
gl.uniform_matrix4f(loc["MVP"], true, projection * mv)
end
local function set_material(ka, kd, ks, shininess)
gl.uniformf(loc["Material.Ka"], ka)
gl.uniformf(loc["Material.Kd"], kd)
gl.uniformf(loc["Material.Ks"], ks)
gl.uniformf(loc["Material.Shininess"], shininess)
end
-- Generate the meshes
local plane = new_plane(50, 50, 1, 1)
local teapot = new_teapot(14)
local torus = new_torus(0.7*1.5, 0.3*1.5, 50,50)
local quad = new_quad()
-- Setup the fbo ----------------------------
local fbo = gl.new_framebuffer('draw read')
-- Create the texture object
local render_tex = gl.new_texture('2d')
gl.texture_storage('2d', 1, 'rgba8', W, H)
gl.texture_parameter('2d', 'min filter', 'nearest')
gl.texture_parameter('2d', 'mag filter', 'nearest')
-- Bind the texture to the FBO
gl.framebuffer_texture_2d('draw read', 'color attachment 0', '2d', render_tex, 0)
-- Create the depth buffer
local depthBuf = gl.new_renderbuffer('renderbuffer')
gl.renderbuffer_storage('renderbuffer', 'depth component', W, H)
-- Bind the depth buffer to the FBO
gl.framebuffer_renderbuffer('draw read', 'depth attachment', 'renderbuffer', depthBuf);
-- Set the targets for the fragment output variables
gl.draw_buffers('color attachment 0')
-- Unbind the framebuffer, and revert to default framebuffer
gl.unbind_framebuffer('draw read')
-- Create the noise texture
local noise_tex = texture.noise_2d_periodic(200.0, 0.5, 512, 512)
gl.active_texture(1)
gl.bind_texture('2d', noise_tex)
gl.use_program(prog)
gl.uniformi(loc["RenderTex"], 0)
gl.uniformi(loc["NoiseTex"], 1)
-- Get the subroutine indexes
local pass1 = gl.get_subroutine_index(prog, 'fragment', "pass1")
local pass2 = gl.get_subroutine_index(prog, 'fragment', "pass2")
gl.uniformi(loc["Width"], W)
gl.uniformi(loc["Height"], H)
gl.uniformf(loc["Radius"], W/3.5)
gl.uniformf(loc["Light.Intensity"], 1.0,1.0,1.0)
gl.uniformf(loc["Light.Position"], 0.0,0.0,0.0,1.0)
-- Event loop -----------------------------------------------------------------
print("Press space to toggle animation on/off")
local model
local t0 = glfw.now()
while not glfw.window_should_close(window) do
glfw.poll_events()
-- Update
local t = glfw.now()
local dt = t - t0
t0 = t
if animate then
angle = angle + speed*dt
if angle >= 2*pi then angle = angle - 2*pi end
end
-- Pass 1 ---------------------------------------------
gl.bind_framebuffer('draw read', fbo)
gl.clear('color', 'depth')
gl.enable('depth test')
gl.uniform_subroutines('fragment', pass1)
local view = glmath.look_at(vec3(7*cos(angle),4.0,7*sin(angle)), vec3(0,0,0), vec3(0,1,0))
set_material(vec3(0.1, 0.1, 0.1), vec3(0.9, 0.9, 0.9), vec3(0.95, 0.95, 0.95), 100.0)
local model = translate(0.0,0.0,0.0)*rotate(rad(-90), 1,0,0)
set_matrices(model, view, projection)
teapot:render()
set_material(vec3(0.1, 0.1, 0.1), vec3(0.4, 0.4, 0.4), vec3(0, 0, 0), 1.0)
model = translate(0.0,-0.75,0.0)
set_matrices(model, view, projection)
plane:render()
set_material(vec3(0.1, 0.1, 0.1), vec3(0.9, 0.5, 0.2), vec3(0.95, 0.95, 0.95), 100.0)
model = translate(1.0,1.0,3.0)*rotate(rad(90), 1,0,0)
set_matrices(model, view, projection)
torus:render()
gl.flush()
-- Pass 2 ---------------------------------------------
gl.unbind_framebuffer('draw read')
gl.active_texture(0)
gl.bind_texture('2d', render_tex)
gl.disable('depth test')
gl.clear('color')
gl.uniform_subroutines('fragment', pass2)
set_matrices(mat4(), mat4(), mat4())
-- Render the full-screen quad
quad:render()
glfw.swap_buffers(window)
end
|
--[[
Name: init.lua
For: SantosRP
By: TalosLife
]]--
AddCSLuaFile "cl_init.lua"
AddCSLuaFile "shared.lua"
include "shared.lua"
util.AddNetworkString "CookingPot"
function ENT:Initialize()
self:SetModel( "models/props_c17/metalPot001a.mdl" )
self:SetModelScale( 0.9 )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:PhysWake()
self.m_tblItems = {}
self.m_tblFluids = {}
end
function ENT:AcceptInput( strName, entActivator, entCaller )
if not IsValid( entCaller ) or not entCaller:IsPlayer() then return end
if strName ~= "Use" then return end
if IsValid( self:GetParent() ) then
if self:HasValidRecipe() and self:GetIsCooking() then
local time = self:GetProgress()
local data = self:GetCookingRecipe()
if time <= data.MinTime then --they didn't wait long enough
--don't clear it, just let them try again
if self:GetParent().OnPotRemoved then
self:GetParent():OnPotRemoved( self )
end
self.BlockPhysGun = false
self.ItemTakeBlocked = false
elseif time > data.MaxTime then --they over cooked it
self:ClearContents()
if data.OverCookMsg then
entCaller:AddNote( data.OverCookMsg )
end
if self:GetParent().OnPotRemoved then
self:GetParent():OnPotRemoved( self )
end
self.BlockPhysGun = false
self.ItemTakeBlocked = false
else
--compute the recipe likeness and the cooking duration likeness
--score it and give the correct item
--give cooking xp
--weight the combined likeness score with the cooking skill
local itemLikeness = {}
local fluidLikeness = {}
--print "--------------------------------------"
--compute item likeness
for itemName, num in pairs( self.m_tblItems ) do
local minAmount = data.Items[itemName].MinAmount
local maxAmount = data.Items[itemName].MaxAmount
local idealAmount = data.Items[itemName].IdealAmount
--num = num -minAmount
local plotTotal = 1 -(maxAmount -num) /maxAmount
local plotDiff = 1 -(idealAmount -num) /idealAmount
if num > idealAmount then
num = num -idealAmount
local max = maxAmount -idealAmount
--print( "over ideal, under ideal plotDiff was ", plotDiff )
plotDiff = (max -num) /max
end
itemLikeness[itemName] = plotDiff
--print( itemName, plotTotal, plotDiff )
end
--compute fluid likeness
for fluidName, num in pairs( self.m_tblFluids ) do
local minAmount = data.Fluids[fluidName].MinAmount
local maxAmount = data.Fluids[fluidName].MaxAmount
local idealAmount = data.Fluids[fluidName].IdealAmount
--num = num -minAmount
local plotTotal = 1 -(maxAmount -num) /maxAmount
local plotDiff = 1 -(idealAmount -num) /idealAmount
if num > idealAmount then
num = num -idealAmount
local max = maxAmount -idealAmount
--print( "over ideal, under ideal plotDiff was ", plotDiff )
plotDiff = (max -num) /max
end
fluidLikeness[fluidName] = plotDiff
--print( fluidName, plotTotal, plotDiff )
end
--combine all likeness scores into a total average score, then figure out what to give them
local numItems = table.Count( itemLikeness )
local numFluids = table.Count( fluidLikeness )
local score = 0
for k, v in pairs( itemLikeness ) do
score = score +v
end
for k, v in pairs( fluidLikeness ) do
score = score +v
end
score = math.max( score /(numItems +numFluids), 0 )
--print "--------------------------------------"
--print( "fluidItemScore = ", score )
--weight the score with the player's skill
local plLevel = GAMEMODE.Skills:GetPlayerLevel( entCaller, data.Skill )
local maxLevel = GAMEMODE.Skills:GetMaxLevel( data.Skill )
local skillCurve = 100 -(2 ^-(plLevel /(0.32 *maxLevel)) *(data.SkillWeight *100))
skillCurve = (100 -skillCurve) /100
score = math.max( score -skillCurve, 0 )
--print( "skillCurve = ", skillCurve )
--print( "skillAdjustedScore = ", score )
--print "--------------------------------------"
--weight the score with the the cooking time
local duration = data.MaxTime -data.MinTime
local timeScalar = 1 -(duration -(time -data.MinTime)) /duration
local timeWeight = data.TimeWeight or -2
local timeCurve = timeWeight *(timeScalar -(data.IdealTimePercent or 0.5)) ^2 +1
local baseCurveVal = timeWeight *(0 -(data.IdealTimePercent or 0.5)) ^2 +1
--print( "duration = ", duration, "time = ", time -data.MinTime, "timeScale = ", timeScalar )
--print( "real = ", 1 -timeCurve )
score = math.max( score -(1 -timeCurve), 0 )
--print( "final score [".. score.. "]" )
local giveItemData
for k, v in ipairs( data.GiveItems ) do
if score >= v.MinQuality then
giveItemData = v
end
end
if giveItemData then
if GAMEMODE.Inv:GivePlayerItem( entCaller, giveItemData.GiveItem, giveItemData.GiveAmount ) then
self:ClearContents()
if self:GetParent().OnPotRemoved then
self:GetParent():OnPotRemoved( self )
end
self.BlockPhysGun = false
self.ItemTakeBlocked = false
local giveXPData
for k, v in ipairs( data.GiveXP ) do
if score >= v.MinQuality then
giveXPData = v
end
end
if giveXPData then
GAMEMODE.Skills:GivePlayerXP( entCaller, data.Skill, giveXPData.GiveAmount )
end
end
end
--
end
else
if self:GetParent().OnPotRemoved then
self:GetParent():OnPotRemoved( self )
end
self.BlockPhysGun = false
self.ItemTakeBlocked = false
end
end
end
function ENT:OnPotAttached( entParent )
self.BlockPhysGun = true
self.ItemTakeBlocked = true
self:UpdateCookingRecipe()
end
function ENT:HasValidRecipe()
return self.m_tblCurRecipe ~= nil
end
function ENT:GetCookingRecipe()
return self.m_tblCurRecipe
end
function ENT:UpdateCookingRecipe()
local numItems, numFluids = table.Count( self.m_tblItems ), table.Count( self.m_tblFluids )
for k, v in pairs( GAMEMODE.Inv:GetItems() ) do
if not v.CookingPotVars then continue end
local vars = v.CookingPotVars
local hasMatch = true
if numItems == table.Count( vars.Items ) then
for itemName, num in pairs( self.m_tblItems ) do
if not vars.Items[itemName] or num > vars.Items[itemName].MaxAmount or num < vars.Items[itemName].MinAmount then
hasMatch = false
break
end
end
else
hasMatch = false
end
if not hasMatch then continue end
if numFluids == table.Count( vars.Fluids ) then
for fluidName, num in pairs( self.m_tblFluids ) do
if not vars.Fluids[fluidName] or num > vars.Fluids[fluidName].MaxAmount or num < vars.Fluids[fluidName].MinAmount then
hasMatch = false
break
end
end
else
hasMatch = false
end
if not hasMatch then continue end
self.m_tblCurRecipe = v.CookingPotVars
self:SetItemID( k )
return
end
self.m_tblCurRecipe = nil
end
function ENT:ThinkCooking()
if self:GetProgress() >= self.MaxCookingTime then --Over max time, just start a fire
if not self.m_bCreatedFire then
self.m_bCreatedFire = true
self:ClearContents()
local fire = ents.Create( "ent_fire" )
fire:SetPos( self:GetPos() )
fire:Spawn()
fire:Activate()
end
elseif self:HasValidRecipe() and self:GetProgress() > self:GetCookingRecipe().MaxTime then
if self.m_bCreatedFire then return end
if self:GetCookingRecipe().OverTimeExplode then
self.m_bCreatedFire = true
self:Explode()
elseif self:GetCookingRecipe().OverTimeStartFire then
self.m_bCreatedFire = true
local fire = ents.Create( "ent_fire" )
fire:SetPos( self:GetPos() )
fire:Spawn()
fire:Activate()
end
if self.m_bCreatedFire then
self:ClearContents()
end
end
end
function ENT:Think()
if self:GetIsCooking() then
if not IsValid( self:GetParent() ) or not self:HasHeat() then
self:SetIsCooking( false )
return
end
if CurTime() >= (self.m_intLastProgress or 0) then
self:SetProgress( math.min(self.MaxCookingTime, self:GetProgress() +1) )
self.m_intLastProgress = CurTime() +1
end
self:ThinkCooking()
else
if IsValid( self:GetParent() ) and self:HasHeat() then
self:SetIsCooking( true )
end
if not self.m_intDecayStart then return end
if CurTime() > (self.m_intLastDecay or 0) then
self:SetProgress( math.max(0, self:GetProgress() -1) )
self.m_intLastDecay = CurTime() +0.33
if self:GetProgress() <= 0 then
self.m_intDecayStart = nil
self.m_intLastDecay = nil
end
end
end
end
function ENT:HasHeat()
if not IsValid( self:GetParent() ) then return false end
return self:GetParent():PotHasHeat( self )
end
function ENT:OnCookingStatusChanged( _, bOld, bNew )
if bOld and not bNew then
self.m_bCreatedFire = nil
self.m_intDecayStart = CurTime()
end
end
function ENT:Explode()
local explodeEnt = ents.Create( "env_explosion" )
explodeEnt:SetKeyValue( "iMagnitude", "100" )
explodeEnt:SetPos( self:GetPos() )
explodeEnt:SetOwner( self )
explodeEnt:Spawn()
explodeEnt:Fire( "explode" )
end
function ENT:ClearContents()
self.m_tblFluids = {}
self.m_tblItems = {}
self:NetworkContents()
self.m_tblCurRecipe = nil
self:SetProgress( 0 )
end
function ENT:ReceiveFluid( strLiquidID, intAmount )
if self:GetIsCooking() then return false end
if not self.m_tblFluids[strLiquidID] then
if table.Count( self.m_tblFluids ) >= self.MaxNumFluids then
return false
end
end
self.m_tblFluids[strLiquidID] = self.m_tblFluids[strLiquidID] or 0
self.m_tblFluids[strLiquidID] = math.min( self.m_tblFluids[strLiquidID] +intAmount, self.MaxFluidAmount )
self:NetworkContents()
return true
end
function ENT:GetFluid( strLiquidID )
return self.m_tblFluids[strLiquidID] or 0
end
function ENT:HasFluid( strLiquidID )
return self.m_tblFluids[strLiquidID] and true
end
function ENT:PhysicsCollide( tblData, entOther )
entOther = tblData.HitEntity
if not IsValid( entOther ) then return end
if not entOther.IsItem then return end
if entOther.m_bRemoveWaiting then return end
local itemData = GAMEMODE.Inv:GetItem( entOther.ItemID )
if not itemData or not itemData.CanCook then return end
if self:AddItem( entOther.ItemID, 1 ) then
entOther.m_bRemoveWaiting = true
entOther.ItemTakeBlocked = true
entOther:Remove()
end
end
function ENT:AddItem( strItemID, intAmount )
if self:GetIsCooking() then return false end
if not self.m_tblItems[strItemID] then
if table.Count( self.m_tblItems ) >= self.MaxNumItems then
return false
end
end
self.m_tblItems[strItemID] = self.m_tblItems[strItemID] or 0
self.m_tblItems[strItemID] = math.min( self.m_tblItems[strItemID] +intAmount, self.MaxItemAmount )
self:NetworkContents()
return true
end
function ENT:GetItem( strItemID )
return self.m_tblItems[strItemID] or 0
end
function ENT:HasItem( strItemID )
return self.m_tblItems[strItemID] and true
end
function ENT:NetworkContents( pPlayer )
net.Start( "CookingPot" )
net.WriteUInt( self:EntIndex(), 32 )
net.WriteUInt( table.Count(self.m_tblFluids), 8 )
for k, v in pairs( self.m_tblFluids ) do
net.WriteString( k )
net.WriteUInt( v, 16 )
end
net.WriteUInt( table.Count(self.m_tblItems), 8 )
for k, v in pairs( self.m_tblItems ) do
net.WriteString( k )
net.WriteUInt( v, 8 )
end
if pPlayer then
net.Send( pPlayer )
else
net.Broadcast()
end
end
function ENT:CanSendToLostAndFound()
return true
end |
local customization_menu = {};
local table_helpers;
local config;
local screen;
local player;
local large_monster;
local small_monster;
local env_creature;
local language;
local part_names;
local time_UI;
local keyboard;
customization_menu.font = nil;
customization_menu.font_range = { 0x1, 0xFFFF, 0 };
customization_menu.is_opened = false;
customization_menu.status = "OK";
customization_menu.window_position = Vector2f.new(480, 200);
customization_menu.window_pivot = Vector2f.new(0, 0);
customization_menu.window_size = Vector2f.new(720, 720);
customization_menu.window_flags = 0x10120;
customization_menu.color_picker_flags = 327680;
customization_menu.selected_language_index = 1;
customization_menu.displayed_orientation_types = {};
customization_menu.displayed_anchor_types = {};
customization_menu.displayed_ailments_sorting_types = {};
customization_menu.displayed_monster_UI_sorting_types = {};
customization_menu.displayed_monster_UI_parts_sorting_types = {};
customization_menu.displayed_ailment_buildups_sorting_types = {};
customization_menu.displayed_highlighted_buildup_bar_types = {};
customization_menu.displayed_buildup_bar_relative_types = {};
customization_menu.displayed_damage_meter_UI_highlighted_bar_types = {};
customization_menu.displayed_damage_meter_UI_damage_bar_relative_types = {};
customization_menu.displayed_damage_meter_UI_my_damage_bar_location_types = {};
customization_menu.displayed_damage_meter_UI_sorting_types = {};
customization_menu.orientation_types = {};
customization_menu.anchor_types = {};
customization_menu.monster_UI_sorting_types = {};
customization_menu.ailments_sorting_types = {};
customization_menu.ailment_buildups_sorting_types = {};
customization_menu.highlighted_buildup_bar_types = {};
customization_menu.buildup_bar_relative_types = {};
customization_menu.damage_meter_UI_highlighted_bar_types = {};
customization_menu.damage_meter_UI_damage_bar_relative_types = {};
customization_menu.damage_meter_UI_my_damage_bar_location_types = {};
customization_menu.damage_meter_UI_sorting_types = {};
customization_menu.damage_meter_UI_dps_modes = {};
customization_menu.fonts = { "Arial", "Arial Black", "Bahnschrift", "Calibri", "Cambria", "Cambria Math", "Candara",
"Comic Sans MS", "Consolas", "Constantia", "Corbel", "Courier New", "Ebrima",
"Franklin Gothic Medium", "Gabriola", "Gadugi", "Georgia", "HoloLens MDL2 Assets", "Impact",
"Ink Free", "Javanese Text", "Leelawadee UI", "Lucida Console", "Lucida Sans Unicode",
"Malgun Gothic", "Marlett", "Microsoft Himalaya", "Microsoft JhengHei",
"Microsoft New Tai Lue", "Microsoft PhagsPa", "Microsoft Sans Serif", "Microsoft Tai Le",
"Microsoft YaHei", "Microsoft Yi Baiti", "MingLiU-ExtB", "Mongolian Baiti", "MS Gothic",
"MV Boli", "Myanmar Text", "Nirmala UI", "Palatino Linotype", "Segoe MDL2 Assets",
"Segoe Print", "Segoe Script", "Segoe UI", "Segoe UI Historic", "Segoe UI Emoji",
"Segoe UI Symbol", "SimSun", "Sitka", "Sylfaen", "Symbol", "Tahoma", "Times New Roman",
"Trebuchet MS", "Verdana", "Webdings", "Wingdings", "Yu Gothic" };
customization_menu.small_monster_UI_orientation_index = 1;
customization_menu.small_monster_UI_sorting_type_index = 1;
customization_menu.small_monster_UI_ailments_sorting_type_index = 1;
customization_menu.small_monster_UI_ailment_buildups_sorting_type_index = 1;
customization_menu.small_monster_UI_highlighted_buildup_bar_index = 1;
customization_menu.small_monster_UI_buildup_bar_relative_index = 1;
customization_menu.large_monster_UI_orientation_index = 1;
customization_menu.large_monster_UI_sorting_type_index = 1;
customization_menu.large_monster_UI_highlighted_monster_location_index = 1;
customization_menu.large_monster_dynamic_UI_parts_sorting_type_index = 1;
customization_menu.large_monster_static_UI_parts_sorting_type_index = 1;
customization_menu.large_monster_highlighted_UI_parts_sorting_type_index = 1;
customization_menu.large_monster_dynamic_UI_ailments_sorting_type_index = 1;
customization_menu.large_monster_static_UI_ailments_sorting_type_index = 1;
customization_menu.large_monster_highlighted_UI_ailments_sorting_type_index = 1;
customization_menu.large_monster_dynamic_UI_ailment_buildups_sorting_type_index = 1;
customization_menu.large_monster_static_UI_ailment_buildups_sorting_type_index = 1;
customization_menu.large_monster_highlighted_UI_ailment_buildups_sorting_type_index = 1;
customization_menu.large_monster_dynamic_UI_highlighted_buildup_bar_index = 1;
customization_menu.large_monster_static_UI_highlighted_buildup_bar_index = 1;
customization_menu.large_monster_highlighted_UI_highlighted_buildup_bar_index = 1;
customization_menu.large_monster_dynamic_UI_buildup_bar_relative_index = 1;
customization_menu.large_monster_static_UI_buildup_bar_relative_index = 1;
customization_menu.large_monster_highlighted_UI_buildup_bar_relative_index = 1;
customization_menu.damage_meter_UI_orientation_index = 1;
customization_menu.damage_meter_UI_sorting_type_index = 1;
customization_menu.damage_meter_UI_highlighted_bar_index = 1;
customization_menu.damage_meter_UI_damage_bar_relative_index = 1;
customization_menu.damage_meter_UI_my_damage_bar_location_index = 1;
customization_menu.damage_meter_UI_dps_mode_index = 1;
customization_menu.small_monster_UI_anchor_index = 1;
customization_menu.large_monster_UI_anchor_index = 1;
customization_menu.time_UI_anchor_index = 1;
customization_menu.damage_meter_UI_anchor_index = 1;
customization_menu.selected_UI_font_index = 9;
customization_menu.all_UI_waiting_for_key = false;
customization_menu.small_monster_UI_waiting_for_key = false;
customization_menu.large_monster_UI_waiting_for_key = false;
customization_menu.large_monster_dynamic_UI_waiting_for_key = false;
customization_menu.large_monster_static_UI_waiting_for_key = false;
customization_menu.large_monster_highlighted_UI_waiting_for_key = false;
customization_menu.time_UI_waiting_for_key = false;
customization_menu.damage_meter_UI_waiting_for_key = false;
customization_menu.endemic_life_UI_waiting_for_key = false;
function customization_menu.reload_font(pop_push)
local success, new_font = pcall(imgui.load_font, language.current_language.font_name,
config.current_config.global_settings.menu_font.size, customization_menu.font_range);
if success then
if pop_push then
imgui.pop_font(customization_menu.font);
end
customization_menu.font = new_font;
if pop_push then
imgui.push_font(customization_menu.font);
end
end
end
function customization_menu.init()
customization_menu.reload_font(false);
customization_menu.selected_language_index = table_helpers.find_index(language.language_names,
config.current_config.global_settings.language, false);
customization_menu.displayed_orientation_types = { language.current_language.customization_menu.horizontal,
language.current_language.customization_menu.vertical };
customization_menu.displayed_anchor_types = { language.current_language.customization_menu.top_left,
language.current_language.customization_menu.top_right, language.current_language.customization_menu.bottom_left,
language.current_language.customization_menu.bottom_right };
customization_menu.displayed_monster_UI_sorting_types = { language.current_language.customization_menu.normal,
language.current_language.customization_menu.health, language.current_language.customization_menu.health_percentage,
language.current_language.customization_menu.distance };
customization_menu.displayed_monster_UI_parts_sorting_types = { language.current_language.customization_menu.normal,
language.current_language.customization_menu.health, language.current_language.customization_menu.health_percentage,
language.current_language.customization_menu.flinch_count, language.current_language.customization_menu.break_health,
language.current_language.customization_menu.break_health_percentage,
language.current_language.customization_menu.break_count, language.current_language.customization_menu.loss_health,
language.current_language.customization_menu.loss_health_percentage };
customization_menu.displayed_ailments_sorting_types = { language.current_language.customization_menu.normal,
language.current_language.customization_menu.buildup, language.current_language.customization_menu.buildup_percentage };
customization_menu.displayed_ailment_buildups_sorting_types = { language.current_language.customization_menu.normal,
language.current_language.customization_menu.buildup, language.current_language.customization_menu.buildup_percentage };
customization_menu.displayed_highlighted_buildup_bar_types = { language.current_language.customization_menu.me,
language.current_language.customization_menu.top_buildup, language.current_language.customization_menu.none };
customization_menu.displayed_buildup_bar_relative_types = { language.current_language.customization_menu.total_buildup,
language.current_language.customization_menu.top_buildup };
customization_menu.displayed_damage_meter_UI_highlighted_bar_types = { language.current_language.customization_menu.me,
language.current_language.customization_menu.top_damage, language.current_language.customization_menu.top_dps,
language.current_language.customization_menu.none };
customization_menu.displayed_damage_meter_UI_damage_bar_relative_types = { language.current_language.customization_menu
.total_damage, language.current_language.customization_menu.top_damage };
customization_menu.displayed_damage_meter_UI_my_damage_bar_location_types = { language.current_language.customization_menu
.normal, language.current_language.customization_menu.first, language.current_language.customization_menu.last };
customization_menu.displayed_damage_meter_UI_sorting_types = { language.current_language.customization_menu.normal,
language.current_language.customization_menu.damage, language.current_language.customization_menu.dps };
customization_menu.displayed_damage_meter_UI_dps_modes = { language.current_language.customization_menu.first_hit,
language.current_language.customization_menu.quest_time, language.current_language.customization_menu.join_time };
customization_menu.orientation_types = { language.default_language.customization_menu.horizontal,
language.default_language.customization_menu.vertical };
customization_menu.anchor_types = { language.default_language.customization_menu.top_left,
language.default_language.customization_menu.top_right, language.default_language.customization_menu.bottom_left,
language.default_language.customization_menu.bottom_right };
customization_menu.monster_UI_sorting_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.health, language.default_language.customization_menu.health_percentage,
language.default_language.customization_menu.distance };
customization_menu.large_monster_UI_parts_sorting_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.health, language.default_language.customization_menu.health_percentage,
language.default_language.customization_menu.flinch_count, language.default_language.customization_menu.break_health,
language.default_language.customization_menu.break_health_percentage,
language.default_language.customization_menu.break_count, language.default_language.customization_menu.loss_health,
language.default_language.customization_menu.loss_health_percentage };
customization_menu.ailments_sorting_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.buildup, language.default_language.customization_menu.buildup_percentage };
customization_menu.ailment_buildups_sorting_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.buildup, language.default_language.customization_menu.buildup_percentage };
customization_menu.highlighted_buildup_bar_types = { language.default_language.customization_menu.me,
language.default_language.customization_menu.top_buildup, language.default_language.customization_menu.none };
customization_menu.buildup_bar_relative_types = { language.default_language.customization_menu.total_buildup,
language.default_language.customization_menu.top_buildup };
customization_menu.damage_meter_UI_highlighted_bar_types = { language.default_language.customization_menu.me,
language.default_language.customization_menu.top_damage, language.default_language.customization_menu.top_dps,
language.default_language.customization_menu.none };
customization_menu.damage_meter_UI_damage_bar_relative_types = { language.default_language.customization_menu.total_damage,
language.default_language.customization_menu.top_damage };
customization_menu.damage_meter_UI_my_damage_bar_location_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.first, language.default_language.customization_menu.last };
customization_menu.damage_meter_UI_sorting_types = { language.default_language.customization_menu.normal,
language.default_language.customization_menu.damage, language.default_language.customization_menu.dps };
customization_menu.damage_meter_UI_dps_modes = { language.default_language.customization_menu.first_hit,
language.default_language.customization_menu.quest_time, language.default_language.customization_menu.join_time };
customization_menu.selected_UI_font_index = table_helpers.find_index(customization_menu.fonts,
config.current_config.global_settings.UI_font.family, false);
customization_menu.small_monster_UI_orientation_index = table_helpers.find_index(customization_menu.orientation_types,
config.current_config.small_monster_UI.settings.orientation, false);
customization_menu.small_monster_UI_sorting_type_index = table_helpers.find_index(customization_menu.monster_UI_sorting_types
,
config.current_config.small_monster_UI.static_sorting.type, false);
customization_menu.small_monster_UI_ailments_sorting_type_index = table_helpers.find_index(customization_menu.ailments_sorting_types
,
config.current_config.small_monster_UI.ailments.sorting.type, false);
customization_menu.small_monster_UI_ailment_buildups_sorting_type_index = table_helpers.find_index(customization_menu.ailment_buildups_sorting_types
,
config.current_config.small_monster_UI.ailment_buildups.sorting.type, false);
customization_menu.small_monster_UI_highlighted_buildup_bar_index = table_helpers.find_index(customization_menu.highlighted_buildup_bar_types
,
config.current_config.small_monster_UI.ailment_buildups.settings.highlighted_bar, false);
customization_menu.small_monster_UI_buildup_bar_relative_index = table_helpers.find_index(customization_menu.buildup_bar_relative_types
,
config.current_config.small_monster_UI.ailment_buildups.settings.buildup_bar_relative_to, false);
customization_menu.large_monster_UI_orientation_index = table_helpers.find_index(customization_menu.orientation_types,
config.current_config.large_monster_UI.static.settings.orientation, false);
customization_menu.large_monster_UI_sorting_type_index = table_helpers.find_index(
customization_menu.monster_UI_sorting_types, config.current_config.large_monster_UI.static.sorting.type, false);
customization_menu.large_monster_UI_highlighted_monster_location_index = table_helpers.find_index(
customization_menu.damage_meter_UI_my_damage_bar_location_types,
config.current_config.large_monster_UI.static.settings.highlighted_monster_location, false);
customization_menu.large_monster_dynamic_UI_parts_sorting_type_index = table_helpers.find_index(
customization_menu.large_monster_UI_parts_sorting_types,
config.current_config.large_monster_UI.dynamic.body_parts.sorting.type, false);
customization_menu.large_monster_static_UI_parts_sorting_type_index = table_helpers.find_index(
customization_menu.large_monster_UI_parts_sorting_types,
config.current_config.large_monster_UI.static.body_parts.sorting.type, false);
customization_menu.large_monster_highlighted_UI_parts_sorting_type_index = table_helpers.find_index(
customization_menu.large_monster_UI_parts_sorting_types,
config.current_config.large_monster_UI.highlighted.body_parts.sorting.type, false);
customization_menu.large_monster_dynamic_UI_ailments_sorting_type_index = table_helpers.find_index(
customization_menu.ailments_sorting_types,
config.current_config.large_monster_UI.dynamic.ailments.sorting.type, false);
customization_menu.large_monster_static_UI_ailments_sorting_type_index = table_helpers.find_index(
customization_menu.ailments_sorting_types,
config.current_config.large_monster_UI.static.ailments.sorting.type, false);
customization_menu.large_monster_highlighted_UI_ailments_sorting_type_index = table_helpers.find_index(
customization_menu.ailments_sorting_types,
config.current_config.large_monster_UI.highlighted.ailments.sorting.type, false);
customization_menu.large_monster_dynamic_UI_ailment_buildups_sorting_type_index = table_helpers.find_index(customization_menu
.ailment_buildups_sorting_types,
config.current_config.large_monster_UI.dynamic.ailment_buildups.sorting.type, false);
customization_menu.large_monster_static_UI_ailment_buildups_sorting_type_index = table_helpers.find_index(customization_menu
.ailment_buildups_sorting_types,
config.current_config.large_monster_UI.static.ailment_buildups.sorting.type, false);
customization_menu.large_monster_highlighted_UI_ailment_buildups_sorting_type_index = table_helpers.find_index(customization_menu
.ailment_buildups_sorting_types,
config.current_config.large_monster_UI.highlighted.ailment_buildups.sorting.type, false);
customization_menu.large_monster_dynamic_UI_highlighted_buildup_bar_index = table_helpers.find_index(customization_menu
.highlighted_buildup_bar_types,
config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.highlighted_bar, false);
customization_menu.large_monster_static_UI_highlighted_buildup_bar_index = table_helpers.find_index(customization_menu.highlighted_buildup_bar_types
,
config.current_config.large_monster_UI.static.ailment_buildups.settings.highlighted_bar, false);
customization_menu.large_monster_highlighted_UI_highlighted_buildup_bar_index = table_helpers.find_index(customization_menu
.highlighted_buildup_bar_types,
config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.highlighted_bar, false);
customization_menu.large_monster_dynamic_UI_buildup_bar_relative_index = table_helpers.find_index(customization_menu.buildup_bar_relative_types
,
config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.buildup_bar_relative_to, false);
customization_menu.large_monster_static_UI_buildup_bar_relative_index = table_helpers.find_index(customization_menu.buildup_bar_relative_types
,
config.current_config.large_monster_UI.static.ailment_buildups.settings.buildup_bar_relative_to, false);
customization_menu.large_monster_highlighted_UI_buildup_bar_relative_index = table_helpers.find_index(customization_menu
.buildup_bar_relative_types,
config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.buildup_bar_relative_to, false);
customization_menu.damage_meter_UI_orientation_index = table_helpers.find_index(customization_menu.orientation_types,
config.current_config.damage_meter_UI.settings.orientation, false);
customization_menu.damage_meter_UI_highlighted_bar_index = table_helpers.find_index(
customization_menu.damage_meter_UI_highlighted_bar_types,
config.current_config.damage_meter_UI.settings.highlighted_bar, false);
customization_menu.damage_meter_UI_damage_bar_relative_index = table_helpers.find_index(
customization_menu.damage_meter_UI_damage_bar_relative_types,
config.current_config.damage_meter_UI.settings.damage_bar_relative_to, false);
customization_menu.damage_meter_UI_my_damage_bar_location_index = table_helpers.find_index(
customization_menu.damage_meter_UI_my_damage_bar_location_types,
config.current_config.damage_meter_UI.settings.my_damage_bar_location, false);
customization_menu.damage_meter_UI_sorting_type_index = table_helpers.find_index(
customization_menu.damage_meter_UI_sorting_types, config.current_config.damage_meter_UI.sorting.type, false);
customization_menu.damage_meter_UI_dps_mode_index = table_helpers.find_index(
customization_menu.damage_meter_UI_dps_modes, config.current_config.damage_meter_UI.settings.dps_mode, false);
customization_menu.selected_font_index = table_helpers.find_index(customization_menu.fonts,
config.current_config.global_settings.UI_font.family, false);
customization_menu.small_monster_UI_anchor_index = table_helpers.find_index(customization_menu.anchor_types,
config.current_config.small_monster_UI.static_position.anchor, false);
customization_menu.large_monster_UI_anchor_index = table_helpers.find_index(customization_menu.anchor_types,
config.current_config.large_monster_UI.static.position.anchor, false);
customization_menu.time_UI_anchor_index = table_helpers.find_index(customization_menu.anchor_types,
config.current_config.time_UI.position.anchor, false);
customization_menu.damage_meter_UI_anchor_index = table_helpers.find_index(customization_menu.anchor_types,
config.current_config.damage_meter_UI.position.anchor, false);
end
function customization_menu.draw()
imgui.set_next_window_pos(customization_menu.window_position, 1 << 3, customization_menu.window_pivot);
imgui.set_next_window_size(customization_menu.window_size, 1 << 3);
imgui.push_font(customization_menu.font);
customization_menu.is_opened = imgui.begin_window(language.current_language.customization_menu.mod_name ..
" " .. config.current_config.version, customization_menu.is_opened, customization_menu.window_flags);
if not customization_menu.is_opened then
return;
end
local config_changed = false;
local changed = false;
local modifiers_changed = false;
local small_monster_UI_changed = false;
local large_monster_dynamic_UI_changed = false;
local large_monster_static_UI_changed = false;
local large_monster_highlighted_UI_changed = false;
local time_UI_changed = false;
local damage_meter_UI_changed = false;
local endemic_life_UI_changed = false;
local status_string = tostring(customization_menu.status);
imgui.text(language.current_language.customization_menu.status .. ": " .. status_string);
if imgui.tree_node(language.current_language.customization_menu.modules) then
changed, config.current_config.small_monster_UI.enabled = imgui.checkbox(language.current_language.customization_menu.small_monster_UI
, config.current_config
.small_monster_UI.enabled);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.enabled = imgui.checkbox(language.current_language.customization_menu
.large_monster_dynamic_UI, config.current_config.large_monster_UI.dynamic.enabled);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.static.enabled = imgui.checkbox(language.current_language.customization_menu
.large_monster_static_UI, config.current_config.large_monster_UI.static.enabled);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.enabled = imgui.checkbox(language.current_language.customization_menu
.large_monster_highlighted_UI, config.current_config.large_monster_UI.highlighted.enabled);
config_changed = config_changed or changed;
changed, config.current_config.time_UI.enabled = imgui.checkbox(language.current_language.customization_menu.time_UI,
config.current_config.time_UI.enabled);
config_changed = config_changed or changed;
changed, config.current_config.damage_meter_UI.enabled = imgui.checkbox(language.current_language.customization_menu.damage_meter_UI
,
config.current_config.damage_meter_UI.enabled);
config_changed = config_changed or changed;
changed, config.current_config.endemic_life_UI.enabled = imgui.checkbox(language.current_language.customization_menu.endemic_life_UI
,
config.current_config.endemic_life_UI.enabled);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.hotkeys) then
if customization_menu.all_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.alt = false;
customization_menu.all_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.all_UI) then
local is_any_other_waiting = customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.all_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.all_UI));
if customization_menu.small_monster_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.alt = false;
customization_menu.small_monster_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.small_monster_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.small_monster_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI));
if customization_menu.large_monster_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.alt = false;
customization_menu.large_monster_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.large_monster_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.large_monster_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI));
if customization_menu.large_monster_dynamic_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.alt = false;
customization_menu.large_monster_dynamic_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.large_monster_dynamic_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.large_monster_dynamic_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI));
if customization_menu.large_monster_static_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.alt = false;
customization_menu.large_monster_static_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.large_monster_static_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.large_monster_static_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI));
if customization_menu.large_monster_highlighted_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.alt = false;
customization_menu.large_monster_highlighted_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.large_monster_highlighted_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.large_monster_highlighted_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI));
if customization_menu.time_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.alt = false;
customization_menu.time_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.time_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.damage_meter_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.time_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.time_UI));
if customization_menu.damage_meter_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.alt = false;
customization_menu.damage_meter_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.damage_meter_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.damage_meter_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI));
if customization_menu.endemic_life_UI_waiting_for_key then
if imgui.button(language.current_language.customization_menu.press_any_key) then
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.key = 0;
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.ctrl = false;
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.shift = false;
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.alt = false;
customization_menu.endemic_life_UI_waiting_for_key = false;
end
elseif imgui.button(language.current_language.customization_menu.endemic_life_UI) then
local is_any_other_waiting = customization_menu.all_UI_waiting_for_key
or customization_menu.small_monster_UI_waiting_for_key
or customization_menu.large_monster_UI_waiting_for_key
or customization_menu.large_monster_dynamic_UI_waiting_for_key
or customization_menu.large_monster_static_UI_waiting_for_key
or customization_menu.large_monster_highlighted_UI_waiting_for_key
or customization_menu.time_UI_waiting_for_key
or customization_menu.endemic_life_UI_waiting_for_key;
if not is_any_other_waiting then
customization_menu.endemic_life_UI_waiting_for_key = true;
end
end
imgui.same_line();
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI));
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.global_settings) then
changed, customization_menu.selected_language_index = imgui.combo(language.current_language.customization_menu.language
, customization_menu.selected_language_index, language.language_names);
config_changed = config_changed or changed;
if changed then
config.current_config.global_settings.language = language.language_names[customization_menu.selected_language_index];
language.update(customization_menu.selected_language_index);
imgui.pop_font(customization_menu.font);
customization_menu.init();
imgui.push_font(customization_menu.font);
part_names.init();
large_monster.init_list();
for _, monster in pairs(small_monster.list) do
small_monster.init_UI(monster);
end
for _, _player in pairs(player.list) do
player.init_UI(_player);
end
end
if imgui.tree_node(language.current_language.customization_menu.menu_font) then
changed, config.current_config.global_settings.menu_font.size = imgui.slider_int(" ",
config.current_config.global_settings.menu_font.size, 5, 100);
config_changed = config_changed or changed;
imgui.same_line();
if changed then
customization_menu.reload_font(true);
end
changed = imgui.button("-");
config_changed = config_changed or changed;
imgui.same_line();
if changed then
config.current_config.global_settings.menu_font.size = config.current_config.global_settings.menu_font.size - 1;
if config.current_config.global_settings.menu_font.size < 5 then
config.current_config.global_settings.menu_font.size = 5;
else
customization_menu.reload_font(true);
end
end
changed = imgui.button("+");
config_changed = config_changed or changed;
imgui.same_line();
if changed then
config.current_config.global_settings.menu_font.size = config.current_config.global_settings.menu_font.size + 1;
if config.current_config.global_settings.menu_font.size > 100 then
config.current_config.global_settings.menu_font.size = 100;
else
customization_menu.reload_font(true);
end
end
imgui.text(language.current_language.customization_menu.size);
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.UI_font) then
imgui.text(language.current_language.customization_menu.UI_font_notice);
changed, customization_menu.selected_UI_font_index = imgui.combo(language.current_language.customization_menu.family,
customization_menu.selected_UI_font_index,
customization_menu.fonts);
config_changed = config_changed or changed;
if changed then
config.current_config.global_settings.UI_font.family = customization_menu.fonts[
customization_menu.selected_UI_font_index];
end
changed, config.current_config.global_settings.UI_font.size = imgui.slider_int(language.current_language.customization_menu
.size, config.current_config.global_settings.UI_font.size, 1, 100);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.UI_font.bold = imgui.checkbox(language.current_language.customization_menu
.bold, config.current_config.global_settings.UI_font.bold);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.UI_font.italic = imgui.checkbox(language.current_language.customization_menu
.italic, config.current_config.global_settings.UI_font.italic);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.modifiers) then
changed, config.current_config.global_settings.modifiers.global_position_modifier = imgui.drag_float(language.current_language
.customization_menu.global_position_modifier,
config.current_config.global_settings.modifiers.global_position_modifier, 0.01, 0.01, 10, "%.1f");
config_changed = config_changed or changed;
modifiers_changed = modifiers_changed or changed;
changed, config.current_config.global_settings.modifiers.global_scale_modifier = imgui.drag_float(language.current_language
.customization_menu.global_scale_modifier, config.current_config.global_settings.modifiers.global_scale_modifier,
0.01, 0.01, 10, "%.1f");
config_changed = config_changed or changed;
modifiers_changed = modifiers_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.performance) then
changed, config.current_config.global_settings.performance.max_monster_updates_per_tick = imgui.slider_int(language.current_language
.customization_menu.max_monster_updates_per_tick,
config.current_config.global_settings.performance.max_monster_updates_per_tick, 1, 150);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.performance.prioritize_large_monsters = imgui.checkbox(
language.current_language.customization_menu.prioritize_large_monsters,
config.current_config.global_settings.performance.prioritize_large_monsters);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.module_visibility_on_different_screens) then
if imgui.tree_node(language.current_language.customization_menu.during_quest) then
changed, config.current_config.global_settings.module_visibility.during_quest.small_monster_UI = imgui.checkbox(
language.current_language.customization_menu.small_monster_UI,
config.current_config.global_settings.module_visibility.during_quest.small_monster_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.large_monster_dynamic_UI = imgui.checkbox(language
.current_language.customization_menu.large_monster_dynamic_UI,
config.current_config.global_settings.module_visibility.during_quest.large_monster_dynamic_UI);
config_changed = config_changed or changed;
imgui.same_line();
changed, config.current_config.global_settings.module_visibility.during_quest.large_monster_static_UI = imgui.checkbox(language
.current_language.customization_menu.large_monster_static_UI,
config.current_config.global_settings.module_visibility.during_quest.large_monster_static_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.large_monster_highlighted_UI = imgui.checkbox(language
.current_language.customization_menu.large_monster_highlighted_UI,
config.current_config.global_settings.module_visibility.during_quest.large_monster_highlighted_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.time_UI = imgui.checkbox(language.current_language
.customization_menu.time_UI,
config.current_config.global_settings.module_visibility.during_quest.time_UI);
config_changed = config_changed or changed;
imgui.same_line();
changed, config.current_config.global_settings.module_visibility.during_quest.damage_meter_UI = imgui.checkbox(
language.current_language.customization_menu.damage_meter_UI,
config.current_config.global_settings.module_visibility.during_quest.damage_meter_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI = imgui.checkbox(
language.current_language.customization_menu.endemic_life_UI,
config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.quest_result_screen) then
changed, config.current_config.global_settings.module_visibility.quest_result_screen.small_monster_UI = imgui.checkbox(language
.current_language.customization_menu.small_monster_UI,
config.current_config.global_settings.module_visibility.quest_result_screen.small_monster_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_dynamic_UI = imgui
.checkbox(language.current_language.customization_menu.large_monster_dynamic_UI,
config.current_config.global_settings.module_visibility
.quest_result_screen.large_monster_dynamic_UI);
config_changed = config_changed or changed;
imgui.same_line();
changed, config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_static_UI = imgui
.checkbox(language.current_language.customization_menu.large_monster_static_UI,
config.current_config.global_settings.module_visibility
.quest_result_screen.large_monster_static_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_highlighted_UI = imgui
.checkbox(language.current_language.customization_menu.large_monster_highlighted_UI,
config.current_config.global_settings.module_visibility
.quest_result_screen.large_monster_highlighted_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.quest_result_screen.time_UI = imgui.checkbox(
language.current_language.customization_menu.time_UI,
config.current_config.global_settings.module_visibility.quest_result_screen.time_UI);
config_changed = config_changed or changed;
imgui.same_line();
changed, config.current_config.global_settings.module_visibility.quest_result_screen.damage_meter_UI = imgui.checkbox(language
.current_language.customization_menu.damage_meter_UI,
config.current_config.global_settings.module_visibility.quest_result_screen.damage_meter_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI = imgui.checkbox(
language.current_language.customization_menu.endemic_life_UI,
config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.training_area) then
changed, config.current_config.global_settings.module_visibility.training_area.large_monster_dynamic_UI = imgui.checkbox(language
.current_language.customization_menu.large_monster_dynamic_UI,
config.current_config.global_settings.module_visibility.training_area.large_monster_dynamic_UI);
config_changed = config_changed or changed;
imgui.same_line();
changed, config.current_config.global_settings.module_visibility.training_area.large_monster_static_UI = imgui.checkbox(language
.current_language.customization_menu.large_monster_static_UI,
config.current_config.global_settings.module_visibility.training_area.large_monster_static_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.training_area.damage_meter_UI = imgui.checkbox(
language.current_language.customization_menu.damage_meter_UI,
config.current_config.global_settings.module_visibility.training_area.damage_meter_UI);
config_changed = config_changed or changed;
changed, config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI = imgui.checkbox(
language.current_language.customization_menu.endemic_life_UI,
config.current_config.global_settings.module_visibility.during_quest.endemic_life_UI);
config_changed = config_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.small_monster_UI) then
changed, config.current_config.small_monster_UI.enabled = imgui.checkbox(language.current_language.customization_menu.enabled
, config.current_config
.small_monster_UI.enabled);
config_changed = config_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.small_monster_UI.settings.hide_dead_or_captured = imgui.checkbox(language.current_language
.customization_menu.hide_dead_or_captured, config.current_config
.small_monster_UI.settings.hide_dead_or_captured);
config_changed = config_changed or changed;
changed, customization_menu.small_monster_UI_orientation_index = imgui.combo(language.current_language.customization_menu
.static_orientation, customization_menu.small_monster_UI_orientation_index,
customization_menu.displayed_orientation_types);
config_changed = config_changed or changed;
if changed then
config.current_config.small_monster_UI.settings.orientation = customization_menu.orientation_types[
customization_menu.small_monster_UI_orientation_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.dynamic_positioning) then
changed, config.current_config.small_monster_UI.dynamic_positioning.enabled = imgui.checkbox(language.current_language
.customization_menu.enabled,
config.current_config.small_monster_UI.dynamic_positioning.enabled);
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.dynamic_positioning.opacity_falloff = imgui.checkbox(
language.current_language.customization_menu.opacity_falloff,
config.current_config.small_monster_UI.dynamic_positioning.opacity_falloff);
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.dynamic_positioning.max_distance = imgui.drag_float(language.current_language
.customization_menu.max_distance, config.current_config.small_monster_UI.dynamic_positioning.max_distance, 1, 0,
10000, "%.0f");
config_changed = config_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.world_offset) then
changed, config.current_config.small_monster_UI.dynamic_positioning.world_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.dynamic_positioning.world_offset.x, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.dynamic_positioning.world_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.dynamic_positioning.world_offset.y, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.dynamic_positioning.world_offset.z = imgui.drag_float(language.current_language
.customization_menu.z,
config.current_config.small_monster_UI.dynamic_positioning.world_offset.z, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.viewport_offset) then
changed, config.current_config.small_monster_UI.dynamic_positioning.viewport_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.dynamic_positioning.viewport_offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.dynamic_positioning.viewport_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.dynamic_positioning.viewport_offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.static_position) then
changed, config.current_config.small_monster_UI.static_position.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.small_monster_UI.static_position.x, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.static_position.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.small_monster_UI.static_position.y, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
changed, customization_menu.small_monster_UI_anchor_index = imgui.combo(language.current_language.customization_menu.anchor
,
customization_menu.small_monster_UI_anchor_index, customization_menu.displayed_anchor_types);
config_changed = config_changed or changed;
if changed then
config.current_config.small_monster_UI.static_position.anchor = customization_menu.anchor_types[
customization_menu.small_monster_UI_anchor_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.static_spacing) then
changed, config.current_config.small_monster_UI.static_spacing.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.small_monster_UI.static_spacing.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
changed, config.current_config.small_monster_UI.static_spacing.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.small_monster_UI.static_spacing.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.static_sorting) then
changed, customization_menu.small_monster_UI_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.small_monster_UI_sorting_type_index, customization_menu.displayed_monster_UI_sorting_types);
config_changed = config_changed or changed;
if changed then
config.current_config.small_monster_UI.static_sorting.type = customization_menu.monster_UI_sorting_types[
customization_menu.small_monster_UI_sorting_type_index];
end
changed, config.current_config.small_monster_UI.static_sorting.reversed_order = imgui.checkbox(language.current_language
.customization_menu.reversed_order, config.current_config.small_monster_UI.static_sorting.reversed_order);
config_changed = config_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_name_label) then
changed, config.current_config.small_monster_UI.monster_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.monster_name_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.monster_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.monster_name_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.monster_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.monster_name_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.monster_name_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.monster_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.monster_name_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.monster_name_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.monster_name_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.monster_name_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.monster_name_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.monster_name_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.monster_name_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.monster_name_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.health) then
changed, config.current_config.small_monster_UI.health.visibility = imgui.checkbox(language.current_language.customization_menu
.visible, config.current_config.small_monster_UI.health.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.small_monster_UI.health.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.health.text_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.health.text_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.health.text_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.text_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.health.text_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.health.text_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.text_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.health.text_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.text_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.health.text_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.text_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.text_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.small_monster_UI.health.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.health.value_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.health.value_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.health.value_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.value_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.health.value_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.health.value_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.value_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.health.value_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.value_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.health.value_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.value_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.value_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.small_monster_UI.health.percentage_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.health.percentage_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.percentage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.health.percentage_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.percentage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.health.percentage_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.percentage_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.health.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.health.percentage_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.health.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.health.percentage_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.percentage_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.small_monster_UI.health.bar.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.small_monster_UI.health.bar.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.health.bar.offset.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.small_monster_UI.health.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.bar.offset.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.small_monster_UI.health.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.small_monster_UI.health.bar.size.width = imgui.drag_float(language.current_language.customization_menu
.width,
config.current_config.small_monster_UI.health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.health.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.small_monster_UI.health.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.small_monster_UI.health.bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.small_monster_UI.health.bar.colors.background = imgui.color_picker_argb("",
config.current_config.small_monster_UI.health.bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.stamina) then
changed, config.current_config.small_monster_UI.stamina.visibility = imgui.checkbox(language.current_language.customization_menu
.visible, config.current_config.small_monster_UI.stamina.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.small_monster_UI.stamina.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.stamina.text_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.stamina.text_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.stamina.text_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.text_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.stamina.text_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.stamina.text_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.text_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.stamina.text_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.text_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.stamina.text_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.text_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.text_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.small_monster_UI.stamina.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.stamina.value_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.stamina.value_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.stamina.value_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.value_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.stamina.value_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.stamina.value_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.value_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.stamina.value_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.value_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.stamina.value_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.value_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.value_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.stamina.percentage_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.stamina.percentage_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.percentage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.stamina.percentage_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.stamina.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.stamina.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.stamina.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.stamina.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.stamina.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.small_monster_UI.stamina.bar.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.small_monster_UI.stamina.bar.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.stamina.bar.offset.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.small_monster_UI.stamina.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.bar.offset.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.small_monster_UI.stamina.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.small_monster_UI.stamina.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.small_monster_UI.stamina.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.stamina.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.small_monster_UI.stamina.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.small_monster_UI.stamina.bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.small_monster_UI.stamina.bar.colors.background = imgui.color_picker_argb("",
config.current_config.small_monster_UI.stamina.bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailments) then
changed, config.current_config.small_monster_UI.ailments.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.small_monster_UI.ailments.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.small_monster_UI.ailments.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.small_monster_UI.ailments.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.small_monster_UI.ailments.spacing.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.small_monster_UI.ailments.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.spacing.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.small_monster_UI.ailments.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.small_monster_UI.ailments.settings.hide_ailments_with_zero_buildup = imgui.checkbox(
language.current_language.customization_menu.hide_ailments_with_zero_buildup,
config.current_config.small_monster_UI.ailments.settings.hide_ailments_with_zero_buildup);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.settings.hide_inactive_ailments_with_no_buildup_support = imgui
.checkbox(
language.current_language.customization_menu.hide_inactive_ailments_with_no_buildup_support,
config.current_config.small_monster_UI.ailments.settings.hide_inactive_ailments_with_no_buildup_support);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.settings.hide_all_inactive_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_inactive_ailments,
config.current_config.small_monster_UI.ailments.settings.hide_all_inactive_ailments);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.settings.hide_all_active_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_active_ailments,
config.current_config.small_monster_UI.ailments.settings.hide_all_active_ailments);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.settings.hide_disabled_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_disabled_ailments,
config.current_config.small_monster_UI.ailments.settings.hide_disabled_ailments);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.small_monster_UI.ailments.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.small_monster_UI_ailments_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.small_monster_UI_ailments_sorting_type_index,
customization_menu.displayed_ailments_sorting_types);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if changed then
config.current_config.small_monster_UI.ailments.sorting.type = customization_menu.ailments_sorting_types[
customization_menu.small_monster_UI_ailments_sorting_type_index];
end
changed, config.current_config.small_monster_UI.ailments.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.small_monster_UI.ailments.sorting.reversed_order);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.ailments.ailment_name_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.include.ailment_name = imgui.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.small_monster_UI.ailments.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.include.activation_count = imgui.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.small_monster_UI.ailments.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.ailment_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.ailment_name_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.ailment_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailments.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.small_monster_UI.ailments.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.ailments.text_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.text_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.text_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailments.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.text_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.text_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.text_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.text_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.text_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.small_monster_UI.ailments.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.ailments.value_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.value_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailments.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.value_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.value_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.value_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.value_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.value_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.percentage_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.percentage_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.percentage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailments.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailments.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailments.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.small_monster_UI.ailments.timer_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.timer_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailments.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailments.timer_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.timer_label.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailments.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailments.timer_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailments.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailments.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailments.timer_label.shadow.color = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.timer_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.small_monster_UI.ailments.bar.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.small_monster_UI.ailments.bar.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailments.bar.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.small_monster_UI.ailments.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.bar.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.small_monster_UI.ailments.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.small_monster_UI.ailments.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.small_monster_UI.ailments.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailments.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.small_monster_UI.ailments.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.small_monster_UI.ailments.bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.small_monster_UI.ailments.bar.colors.background = imgui.color_picker_argb("",
config.current_config.small_monster_UI.ailments.bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_buildups) then
changed, config.current_config.small_monster_UI.ailment_buildups.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_spacing) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.player_spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.player_spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.player_spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_spacing) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.ailment_spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.ailment_spacing.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, customization_menu.small_monster_UI_highlighted_buildup_bar_index = imgui.combo(language.current_language.customization_menu
.highlighted_bar, customization_menu.small_monster_UI_highlighted_buildup_bar_index,
customization_menu.displayed_highlighted_buildup_bar_types);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if changed then
config.current_config.small_monster_UI.ailment_buildups.settings.highlighted_bar = customization_menu.highlighted_buildup_bar_types
[customization_menu.small_monster_UI_highlighted_buildup_bar_index];
end
changed, customization_menu.small_monster_UI_buildup_bar_relative_index = imgui.combo(language.current_language.customization_menu
.buildup_bars_are_relative_to, customization_menu.small_monster_UI_buildup_bar_relative_index,
customization_menu.displayed_buildup_bar_relative_types);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if changed then
config.current_config.small_monster_UI.ailment_buildups.settings.buildup_bar_relative_to = customization_menu.displayed_buildup_bar_relative_types
[customization_menu.small_monster_UI_damage_bar_relative_index];
end
changed, config.current_config.small_monster_UI.ailment_buildups.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.small_monster_UI.ailment_buildups.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.filter) then
changed, config.current_config.small_monster_UI.ailment_buildups.filter.stun = imgui.checkbox(language.current_language
.ailments.stun,
config.current_config.small_monster_UI.ailment_buildups.filter.stun);
changed, config.current_config.small_monster_UI.ailment_buildups.filter.poison = imgui.checkbox(language.current_language
.ailments.poison,
config.current_config.small_monster_UI.ailment_buildups.filter.poison);
changed, config.current_config.small_monster_UI.ailment_buildups.filter.blast = imgui.checkbox(language.current_language
.ailments.blast,
config.current_config.small_monster_UI.ailment_buildups.filter.blast);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.small_monster_UI_ailment_buildups_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.small_monster_UI_ailment_buildups_sorting_type_index,
customization_menu.displayed_ailment_buildups_sorting_types);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if changed then
config.current_config.small_monster_UI.ailment_buildups.sorting.type = customization_menu.ailment_buildups_sorting_types
[customization_menu.small_monster_UI_ailment_buildups_sorting_type_index];
end
changed, config.current_config.small_monster_UI.ailment_buildups.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.small_monster_UI.ailment_buildups.sorting.reversed_order);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.include.ailment_name = imgui.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_name_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.player_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.player_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_value_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_percentage_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_value_label) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.small_monster_UI.ailment_buildups.total_buildup_value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_bar) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.buildup_bar.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.buildup_bar.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.buildup_bar.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.small_monster_UI.ailment_buildups.buildup_bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.small_monster_UI.ailment_buildups.buildup_bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.colors.background = imgui.color_picker_argb(""
, config.current_config.small_monster_UI.ailment_buildups.buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted_buildup_bar) then
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.visibility);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.size.width, 0.1, 0, screen.width,
"%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.size.height, 0.1, 0, screen.height
, "%.1f");
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.colors.foreground = imgui
.color_picker_argb("",
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.colors.background = imgui
.color_picker_argb("",
config.current_config.small_monster_UI.ailment_buildups.highlighted_buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
small_monster_UI_changed = small_monster_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.large_monster_UI) then
if imgui.tree_node(language.current_language.customization_menu.dynamically_positioned) then
changed, config.current_config.large_monster_UI.dynamic.enabled = imgui.checkbox(language.current_language.customization_menu
.enabled, config.current_config.large_monster_UI.dynamic.enabled);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.dynamic.settings.hide_dead_or_captured = imgui.checkbox(language.current_language
.customization_menu.hide_dead_or_captured, config.current_config.large_monster_UI.dynamic.settings.hide_dead_or_captured);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.settings.render_highlighted_monster = imgui.checkbox(language
.current_language.customization_menu.render_highlighted_monster, config.current_config.large_monster_UI.dynamic.settings
.render_highlighted_monster);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.settings.render_not_highlighted_monsters = imgui.checkbox(language
.current_language.customization_menu.render_not_highlighted_monsters, config.current_config.large_monster_UI.dynamic
.settings.render_not_highlighted_monsters);
config_changed = config_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.settings.opacity_falloff = imgui.checkbox(language.current_language
.customization_menu.opacity_falloff, config.current_config.large_monster_UI.dynamic.settings.opacity_falloff);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.settings.max_distance = imgui.drag_float(language.current_language
.customization_menu.max_distance, config.current_config.large_monster_UI.dynamic.settings.max_distance, 1, 0, 10000
,
"%.0f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.world_offset) then
changed, config.current_config.large_monster_UI.dynamic.world_offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.large_monster_UI.dynamic.world_offset.x, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.world_offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.large_monster_UI.dynamic.world_offset.y, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.world_offset.z = imgui.drag_float(language.current_language.customization_menu
.z,
config.current_config.large_monster_UI.dynamic.world_offset.z, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.viewport_offset) then
changed, config.current_config.large_monster_UI.dynamic.viewport_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.viewport_offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.viewport_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.viewport_offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_name_label) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.monster_name_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.include.monster_name = imgui.checkbox(
language.current_language.customization_menu.monster_name,
config.current_config.large_monster_UI.dynamic.monster_name_label.include.monster_name);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.include.monster_id = imgui.checkbox(
language.current_language.customization_menu.monster_id,
config.current_config.large_monster_UI.dynamic.monster_name_label.include.monster_id);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.include.crown = imgui.checkbox(language.current_language
.customization_menu.crown,
config.current_config.large_monster_UI.dynamic.monster_name_label.include.crown);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.include.size = imgui.checkbox(language.current_language
.customization_menu.size,
config.current_config.large_monster_UI.dynamic.monster_name_label.include.size);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.include.scrown_thresholds = imgui.checkbox(language
.current_language.customization_menu.crown_thresholds,
config.current_config.large_monster_UI.dynamic.monster_name_label.include.scrown_thresholds);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.monster_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.monster_name_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.monster_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.monster_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.health) then
changed, config.current_config.large_monster_UI.dynamic.health.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.health.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.health.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.value_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.percentage_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.dynamic.health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.dynamic.health.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.normal_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.bar.normal_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.normal_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.bar.normal_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_can_be_captured) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.bar.capture_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.bar.capture_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.capture_line) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.health.bar.capture_line.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.health.bar.capture_line.offset.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.health.bar.capture_line.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.health.bar.capture_line.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.health.bar.capture_line.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.health.bar.capture_line.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.stamina) then
changed, config.current_config.large_monster_UI.dynamic.stamina.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.stamina.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.stamina.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.stamina.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.stamina.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.stamina.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.dynamic.stamina.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.dynamic.stamina.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.stamina.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.stamina.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.rage) then
changed, config.current_config.large_monster_UI.dynamic.rage.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.large_monster_UI.dynamic.rage.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.large_monster_UI.dynamic.rage.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.large_monster_UI.dynamic.rage.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.text_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.rage.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.rage.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.rage.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.timer_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.rage.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.rage.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.rage.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.rage.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.rage.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.rage.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.rage.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.dynamic.rage.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.rage.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.dynamic.rage.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.rage.bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.rage.bar.colors.background = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.rage.bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.body_parts) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.large_monster_UI.dynamic.body_parts.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.settings.hide_undamaged_parts = imgui.checkbox(
language.current_language.customization_menu.hide_undamaged_parts,
config.current_config.large_monster_UI.dynamic.body_parts.settings.hide_undamaged_parts);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.large_monster_UI.dynamic.body_parts.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_dynamic_UI_parts_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.large_monster_dynamic_UI_parts_sorting_type_index,
customization_menu.displayed_monster_UI_parts_sorting_types);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.dynamic.body_parts.sorting.type = customization_menu.large_monster_UI_parts_sorting_types
[customization_menu.large_monster_dynamic_UI_parts_sorting_type_index];
end
changed, config.current_config.large_monster_UI.dynamic.body_parts.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.dynamic.body_parts.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_name_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.part_name = imgui.checkbox(
language.current_language.customization_menu.part_name,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.part_name);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.flinch_count = imgui.checkbox(
language.current_language.customization_menu.flinch_count,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.flinch_count);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.break_count = imgui.checkbox(
language.current_language.customization_menu.break_count,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.break_count);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.break_max_count = imgui.checkbox(
language.current_language.customization_menu.break_max_count,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.include.break_max_count);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_health) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.offset.y, 0.1, -screen.height, screen.height
, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.body_parts.part_health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_health.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.break_health) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.offset.x, 0.1, -
screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.body_parts.part_break.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_break.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.loss_health) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.offset.x, 0.1, -screen.width
, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.offset.y, 0.1, -
screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.offset.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.body_parts.part_loss.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailments) then
changed, config.current_config.large_monster_UI.dynamic.ailments.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.relative_offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.relative_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.relative_offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.relative_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.relative_offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.dynamic.ailments.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.hide_ailments_with_zero_buildup = imgui.checkbox(
language.current_language.customization_menu.hide_ailments_with_zero_buildup,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_ailments_with_zero_buildup);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_inactive_ailments_with_no_buildup_support = imgui
.checkbox(
language.current_language.customization_menu.hide_inactive_ailments_with_no_buildup_support,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_inactive_ailments_with_no_buildup_support);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.hide_all_inactive_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_inactive_ailments,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_all_inactive_ailments);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.hide_all_active_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_active_ailments,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_all_active_ailments);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.hide_disabled_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_disabled_ailments,
config.current_config.large_monster_UI.dynamic.ailments.settings.hide_disabled_ailments);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.offset_is_relative_to_parts = imgui.checkbox(
language.current_language.customization_menu.offset_is_relative_to_parts,
config.current_config.large_monster_UI.dynamic.ailments.settings.offset_is_relative_to_parts);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.large_monster_UI.dynamic.ailments.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.small_monster_UI_ailments_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.small_monster_UI_ailments_sorting_type_index,
customization_menu.displayed_ailments_sorting_types);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.dynamic.ailments.sorting.type = customization_menu.ailments_sorting_types[
customization_menu.small_monster_UI_ailments_sorting_type_index];
end
changed, config.current_config.large_monster_UI.dynamic.ailments.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.dynamic.ailments.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.include.ailment_name = imgui.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.text_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailments.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailments.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailments.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailments.bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailments.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailments.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.dynamic.ailments.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.dynamic.ailments.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.ailments.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailments.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_buildups) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_spacing) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_spacing.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_spacing.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_spacing) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_spacing.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_spacing.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, customization_menu.large_monster_dynamic_UI_highlighted_buildup_bar_index = imgui.combo(language.current_language
.customization_menu.highlighted_bar, customization_menu.large_monster_dynamic_UI_highlighted_buildup_bar_index,
customization_menu.displayed_highlighted_buildup_bar_types);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.highlighted_bar = customization_menu.highlighted_buildup_bar_types
[customization_menu.large_monster_dynamic_UI_highlighted_buildup_bar_index];
end
changed, customization_menu.large_monster_dynamic_UI_buildup_bar_relative_index = imgui.combo(language.current_language
.customization_menu.buildup_bars_are_relative_to,
customization_menu.large_monster_dynamic_UI_buildup_bar_relative_index,
customization_menu.displayed_buildup_bar_relative_types);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.buildup_bar_relative_to = customization_menu
.displayed_buildup_bar_relative_types[customization_menu.large_monster_dynamic_UI_damage_bar_relative_index];
end
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.time_limit = imgui.drag_float(language
.current_language.customization_menu.time_limit,
config.current_config.large_monster_UI.dynamic.ailment_buildups.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.filter) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.stun = imgui.checkbox(language.current_language
.ailments.stun,
config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.stun);
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.poison = imgui.checkbox(language.current_language
.ailments.poison,
config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.poison);
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.blast = imgui.checkbox(language.current_language
.ailments.blast,
config.current_config.large_monster_UI.dynamic.ailment_buildups.filter.blast);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_dynamic_UI_ailment_buildups_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.large_monster_dynamic_UI_ailment_buildups_sorting_type_index,
customization_menu.displayed_ailment_buildups_sorting_types);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.dynamic.ailment_buildups.sorting.type = customization_menu.ailment_buildups_sorting_types
[customization_menu.large_monster_dynamic_UI_ailment_buildups_sorting_type_index];
end
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.dynamic.ailment_buildups.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.include.ailment_name = imgui
.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_name_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.player_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_value_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.offset.y, 0.1, -screen.height
, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_percentage_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.offset.y, 0.1, -screen.height
,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_value_label) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_value_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_bar) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.size.width, 0.1, 0, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.dynamic.ailment_buildups.buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted_buildup_bar) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.visibility = imgui
.checkbox(language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.offset.x, 0.1,
-screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.offset.y, 0.1,
-screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.size.width = imgui
.drag_float(language.current_language.customization_menu.width,
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.size.width, 0.1, 0,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.size.height = imgui
.drag_float(language.current_language.customization_menu.height,
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.size.height, 0.1, 0,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.colors.foreground = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.colors.background = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.dynamic.ailment_buildups.highlighted_buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_dynamic_UI_changed = large_monster_dynamic_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.statically_positioned) then
changed, config.current_config.large_monster_UI.static.enabled = imgui.checkbox(language.current_language.customization_menu
.enabled, config.current_config.large_monster_UI.static.enabled);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.static.settings.hide_dead_or_captured = imgui.checkbox(language.current_language
.customization_menu.hide_dead_or_captured, config.current_config.large_monster_UI.static.settings.hide_dead_or_captured);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.settings.render_highlighted_monster = imgui.checkbox(language
.current_language.customization_menu.render_highlighted_monster, config.current_config.large_monster_UI.static.settings
.render_highlighted_monster);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.settings.render_not_highlighted_monsters = imgui.checkbox(language
.current_language.customization_menu.render_not_highlighted_monsters, config.current_config.large_monster_UI.static
.settings.render_not_highlighted_monsters);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, customization_menu.large_monster_UI_highlighted_monster_location_index = imgui.combo(language.current_language
.customization_menu.highlighted_monster_location,
customization_menu.large_monster_UI_highlighted_monster_location_index,
customization_menu.displayed_damage_meter_UI_my_damage_bar_location_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.settings.highlighted_monster_location = customization_menu.damage_meter_UI_my_damage_bar_location_types
[customization_menu.large_monster_UI_highlighted_monster_location_index];
end
changed, customization_menu.large_monster_UI_orientation_index = imgui.combo(language.current_language.customization_menu
.orientation,
customization_menu.large_monster_UI_orientation_index, customization_menu.displayed_orientation_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.settings.orientation = customization_menu.orientation_types[
customization_menu.large_monster_UI_orientation_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.position) then
changed, config.current_config.large_monster_UI.static.position.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.large_monster_UI.static.position.x, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.position.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.large_monster_UI.static.position.y, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, customization_menu.large_monster_UI_anchor_index = imgui.combo(language.current_language.customization_menu
.anchor,
customization_menu.large_monster_UI_anchor_index, customization_menu.displayed_anchor_types);
config_changed = config_changed or changed;
if changed then
config.current_config.large_monster_UI.static.position.anchor = customization_menu.anchor_types[
customization_menu.large_monster_UI_anchor_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.static.spacing.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.large_monster_UI.static.spacing.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.spacing.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.large_monster_UI.static.spacing.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_UI_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.large_monster_UI_sorting_type_index, customization_menu.displayed_monster_UI_sorting_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.sorting.type = customization_menu.monster_UI_sorting_types[
customization_menu.large_monster_UI_sorting_type_index];
end
changed, config.current_config.large_monster_UI.static.sorting.reversed_order = imgui.checkbox(language.current_language
.customization_menu.reversed_order, config.current_config.large_monster_UI.static.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_name_label) then
changed, config.current_config.large_monster_UI.static.monster_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.monster_name_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.static.monster_name_label.include.monster_name = imgui.checkbox(
language.current_language.customization_menu.monster_name,
config.current_config.large_monster_UI.static.monster_name_label.include.monster_name);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.include.monster_id = imgui.checkbox(
language.current_language.customization_menu.monster_id,
config.current_config.large_monster_UI.static.monster_name_label.include.monster_id);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.include.crown = imgui.checkbox(language.current_language
.customization_menu.crown,
config.current_config.large_monster_UI.static.monster_name_label.include.crown);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.include.size = imgui.checkbox(language.current_language
.customization_menu.size,
config.current_config.large_monster_UI.static.monster_name_label.include.size);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.include.scrown_thresholds = imgui.checkbox(language
.current_language.customization_menu.crown_thresholds,
config.current_config.large_monster_UI.static.monster_name_label.include.scrown_thresholds);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.monster_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.monster_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.monster_name_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.monster_name_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.monster_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.monster_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.monster_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.monster_name_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.monster_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.monster_name_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.monster_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.monster_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.monster_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.health) then
changed, config.current_config.large_monster_UI.static.health.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.large_monster_UI.static.health.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.health.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.health.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.health.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.health.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.health.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.health.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.health.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.health.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.health.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.health.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.health.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.health.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.health.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.health.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.health.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.health.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.health.percentage_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.health.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.health.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.health.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.health.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.health.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.health.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.health.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.health.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.health.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.static.health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.static.health.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.health.bar.normal_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.bar.normal_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.health.bar.normal_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.bar.normal_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_can_be_captured) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.bar.capture_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.bar.capture_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.capture_line) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.health.bar.capture_line.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.health.bar.capture_line.offset.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.health.bar.capture_line.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.health.bar.capture_line.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.health.bar.capture_line.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.health.bar.capture_line.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.health.bar.capture_line.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.stamina) then
changed, config.current_config.large_monster_UI.static.stamina.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.stamina.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.stamina.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.value_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.percentage_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.stamina.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.stamina.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.stamina.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.stamina.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.stamina.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.stamina.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.static.stamina.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.stamina.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.static.stamina.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.stamina.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.stamina.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.stamina.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.rage) then
changed, config.current_config.large_monster_UI.static.rage.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.large_monster_UI.static.rage.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.large_monster_UI.static.rage.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.large_monster_UI.static.rage.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.rage.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.rage.text_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.rage.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.rage.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.rage.text_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.rage.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.text_label.shadow.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.text_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.rage.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.rage.value_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.rage.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.rage.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.rage.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.rage.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.rage.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.rage.percentage_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.percentage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.rage.percentage_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.rage.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.rage.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.rage.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.rage.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.rage.timer_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.rage.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.rage.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.rage.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.rage.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.rage.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.rage.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.rage.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.rage.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.rage.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.rage.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.static.rage.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.rage.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.static.rage.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.rage.bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.rage.bar.colors.background = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.rage.bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.body_parts) then
changed, config.current_config.large_monster_UI.static.body_parts.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.large_monster_UI.static.body_parts.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.large_monster_UI.static.body_parts.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.large_monster_UI.static.body_parts.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.static.body_parts.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.static.body_parts.settings.hide_undamaged_parts = imgui.checkbox(
language.current_language.customization_menu.hide_undamaged_parts,
config.current_config.large_monster_UI.static.body_parts.settings.hide_undamaged_parts);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.large_monster_UI.static.body_parts.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_static_UI_parts_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.large_monster_static_UI_parts_sorting_type_index,
customization_menu.displayed_monster_UI_parts_sorting_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.body_parts.sorting.type = customization_menu.large_monster_UI_parts_sorting_types
[customization_menu.large_monster_static_UI_parts_sorting_type_index];
end
changed, config.current_config.large_monster_UI.static.body_parts.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.static.body_parts.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_name_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_name_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.include.part_name = imgui.checkbox(
language.current_language.customization_menu.part_name,
config.current_config.large_monster_UI.static.body_parts.part_name_label.include.part_name);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.include.flinch_count = imgui.checkbox(
language.current_language.customization_menu.flinch_count,
config.current_config.large_monster_UI.static.body_parts.part_name_label.include.flinch_count);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.include.break_count = imgui.checkbox(
language.current_language.customization_menu.break_count,
config.current_config.large_monster_UI.static.body_parts.part_name_label.include.break_count);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.include.break_max_count = imgui.checkbox(
language.current_language.customization_menu.break_max_count,
config.current_config.large_monster_UI.static.body_parts.part_name_label.include.break_max_count);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_name_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.body_parts.part_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_health) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.offset.y, 0.1, -screen.height
,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.offset.x, 0.1, -screen.width
,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.offset.y, 0.1, -
screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_health.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_health.bar.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_health.bar.offset.y, 0.1, -screen.height, screen.height
, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.body_parts.part_health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.body_parts.part_health.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.body_parts.part_health.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_health.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.break_health) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.offset.y, 0.1, -screen.height
,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_break.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_break.bar.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_break.bar.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.body_parts.part_break.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.body_parts.part_break.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.body_parts.part_break.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_break.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.loss_health) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.body_parts.part_loss.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.body_parts.part_loss.bar.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.body_parts.part_loss.bar.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.body_parts.part_loss.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.body_parts.part_loss.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.body_parts.part_loss.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailments) then
changed, config.current_config.large_monster_UI.static.ailments.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.relative_offset) then
changed, config.current_config.large_monster_UI.static.ailments.relative_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.relative_offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.relative_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.relative_offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.static.ailments.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.static.ailments.settings.hide_ailments_with_zero_buildup = imgui.checkbox(
language.current_language.customization_menu.hide_ailments_with_zero_buildup,
config.current_config.large_monster_UI.static.ailments.settings.hide_ailments_with_zero_buildup);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed,
config.current_config.large_monster_UI.static.ailments.settings.hide_inactive_ailments_with_no_buildup_support = imgui
.checkbox(
language.current_language.customization_menu.hide_inactive_ailments_with_no_buildup_support,
config.current_config.large_monster_UI.static.ailments.settings.hide_inactive_ailments_with_no_buildup_support);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.settings.hide_all_inactive_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_inactive_ailments,
config.current_config.large_monster_UI.static.ailments.settings.hide_all_inactive_ailments);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.settings.hide_all_active_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_active_ailments,
config.current_config.large_monster_UI.static.ailments.settings.hide_all_active_ailments);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.settings.hide_disabled_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_disabled_ailments,
config.current_config.large_monster_UI.static.ailments.settings.hide_disabled_ailments);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.settings.offset_is_relative_to_parts = imgui.checkbox(
language.current_language.customization_menu.offset_is_relative_to_parts,
config.current_config.large_monster_UI.static.ailments.settings.offset_is_relative_to_parts);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.large_monster_UI.static.ailments.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.small_monster_UI_ailments_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.small_monster_UI_ailments_sorting_type_index,
customization_menu.displayed_ailments_sorting_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.ailments.sorting.type = customization_menu.ailments_sorting_types[
customization_menu.small_monster_UI_ailments_sorting_type_index];
end
changed, config.current_config.large_monster_UI.static.ailments.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.static.ailments.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.include.ailment_name = imgui.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.text_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.ailments.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.ailments.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.percentage_label.offset.x, 0.1, -screen.width, screen.width
,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.timer_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.static.ailments.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailments.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.static.ailments.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.ailments.bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailments.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailments.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailments.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.ailments.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.static.ailments.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailments.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.static.ailments.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.ailments.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.ailments.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailments.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_buildups) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_spacing) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.player_spacing.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.player_spacing.y, 0.1, -screen.height, screen.height
, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_spacing) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_spacing.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_spacing.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, customization_menu.large_monster_static_UI_highlighted_buildup_bar_index = imgui.combo(language.current_language
.customization_menu.highlighted_bar, customization_menu.large_monster_static_UI_highlighted_buildup_bar_index,
customization_menu.displayed_highlighted_buildup_bar_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.ailment_buildups.settings.highlighted_bar = customization_menu.highlighted_buildup_bar_types
[customization_menu.large_monster_static_UI_highlighted_buildup_bar_index];
end
changed, customization_menu.large_monster_static_UI_buildup_bar_relative_index = imgui.combo(language.current_language
.customization_menu.buildup_bars_are_relative_to,
customization_menu.large_monster_static_UI_buildup_bar_relative_index,
customization_menu.displayed_buildup_bar_relative_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.ailment_buildups.settings.buildup_bar_relative_to = customization_menu
.displayed_buildup_bar_relative_types[customization_menu.large_monster_static_UI_damage_bar_relative_index];
end
changed, config.current_config.large_monster_UI.static.ailment_buildups.settings.time_limit = imgui.drag_float(language
.current_language.customization_menu.time_limit,
config.current_config.large_monster_UI.static.ailment_buildups.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.filter) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.filter.stun = imgui.checkbox(language.current_language
.ailments.stun,
config.current_config.large_monster_UI.static.ailment_buildups.filter.stun);
changed, config.current_config.large_monster_UI.static.ailment_buildups.filter.poison = imgui.checkbox(language.current_language
.ailments.poison,
config.current_config.large_monster_UI.static.ailment_buildups.filter.poison);
changed, config.current_config.large_monster_UI.static.ailment_buildups.filter.blast = imgui.checkbox(language.current_language
.ailments.blast,
config.current_config.large_monster_UI.static.ailment_buildups.filter.blast);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_static_UI_ailment_buildups_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.large_monster_static_UI_ailment_buildups_sorting_type_index,
customization_menu.displayed_ailment_buildups_sorting_types);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.static.ailment_buildups.sorting.type = customization_menu.ailment_buildups_sorting_types
[customization_menu.large_monster_static_UI_ailment_buildups_sorting_type_index];
end
changed, config.current_config.large_monster_UI.static.ailment_buildups.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.static.ailment_buildups.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.include.ailment_name = imgui
.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_name_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.player_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_value_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.buildup_value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_percentage_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.static.ailment_buildups.buildup_percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_value_label) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_value_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.static.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_bar) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.size.width, 0.1, 0, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.static.ailment_buildups.buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted_buildup_bar) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.offset.x, 0.1,
-screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.offset.y, 0.1,
-screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.size.width = imgui
.drag_float(language.current_language.customization_menu.width,
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.size.width, 0.1, 0,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.size.height = imgui
.drag_float(language.current_language.customization_menu.height,
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.size.height, 0.1, 0,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.colors.foreground = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.colors.background = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.static.ailment_buildups.highlighted_buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_static_UI_changed = large_monster_static_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted) then
changed, config.current_config.large_monster_UI.highlighted.enabled = imgui.checkbox(language.current_language.customization_menu
.enabled, config.current_config.large_monster_UI.highlighted.enabled);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.position) then
changed, config.current_config.large_monster_UI.highlighted.position.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.large_monster_UI.highlighted.position.x, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.position.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.large_monster_UI.highlighted.position.y, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, customization_menu.large_monster_UI_anchor_index = imgui.combo(language.current_language.customization_menu
.anchor,
customization_menu.large_monster_UI_anchor_index, customization_menu.displayed_anchor_types);
config_changed = config_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.position.anchor = customization_menu.anchor_types[
customization_menu.large_monster_UI_anchor_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_name_label) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.monster_name_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.include.monster_name = imgui.checkbox(
language.current_language.customization_menu.monster_name,
config.current_config.large_monster_UI.highlighted.monster_name_label.include.monster_name);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.include.monster_id = imgui.checkbox(
language.current_language.customization_menu.monster_id,
config.current_config.large_monster_UI.highlighted.monster_name_label.include.monster_id);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.include.crown = imgui.checkbox(language
.current_language.customization_menu.crown,
config.current_config.large_monster_UI.highlighted.monster_name_label.include.crown);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.include.size = imgui.checkbox(language
.current_language.customization_menu.size,
config.current_config.large_monster_UI.highlighted.monster_name_label.include.size);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.include.scrown_thresholds = imgui.checkbox(language
.current_language.customization_menu.crown_thresholds,
config.current_config.large_monster_UI.highlighted.monster_name_label.include.scrown_thresholds);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.monster_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.monster_name_label.offset.y, 0.1, -screen.height, screen.height
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.monster_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.monster_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.health) then
changed, config.current_config.large_monster_UI.highlighted.health.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.text_label.offset.y, 0.1, -screen.height, screen.height
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.health.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.value_label.offset.y, 0.1, -screen.height, screen.height
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.health.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.highlighted.health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.highlighted.health.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.normal_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.bar.normal_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.normal_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.bar.normal_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.monster_can_be_captured) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.bar.capture_colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.bar.capture_colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.capture_line) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.health.bar.capture_line.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.health.bar.capture_line.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.health.bar.capture_line.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.health.bar.capture_line.size.width, 0.1, 0, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.health.bar.capture_line.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.health.bar.capture_line.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.stamina) then
changed, config.current_config.large_monster_UI.highlighted.stamina.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.text_label.offset.y, 0.1, -screen.height, screen.height
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.stamina.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.value_label.offset.x, 0.1, -screen.width, screen.width
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.offset.x,
0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.offset.y,
0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.stamina.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.stamina.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.stamina.bar.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.highlighted.stamina.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.highlighted.stamina.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.stamina.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.stamina.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.rage) then
changed, config.current_config.large_monster_UI.highlighted.rage.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.text_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.text_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.rage.text_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.value_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.value_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.rage.value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.timer_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.timer_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.color = imgui.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.rage.timer_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.rage.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.rage.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.rage.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.rage.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.rage.bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.rage.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.highlighted.rage.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.rage.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.highlighted.rage.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.rage.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.rage.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.rage.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.body_parts) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.settings.hide_undamaged_parts = imgui.checkbox(
language.current_language.customization_menu.hide_undamaged_parts,
config.current_config.large_monster_UI.highlighted.body_parts.settings.hide_undamaged_parts);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.settings.time_limit = imgui.drag_float(language.current_language
.customization_menu.time_limit,
config.current_config.large_monster_UI.highlighted.body_parts.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_highlighted_UI_parts_sorting_type_index = imgui.combo(language.current_language
.customization_menu.type,
customization_menu.large_monster_highlighted_UI_parts_sorting_type_index,
customization_menu.displayed_monster_UI_parts_sorting_types);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.body_parts.sorting.type = customization_menu.large_monster_UI_parts_sorting_types
[customization_menu.large_monster_highlighted_UI_parts_sorting_type_index];
end
changed, config.current_config.large_monster_UI.highlighted.body_parts.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.highlighted.body_parts.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_name_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.part_name = imgui.checkbox(
language.current_language.customization_menu.part_name,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.part_name);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.flinch_count = imgui.checkbox(
language.current_language.customization_menu.flinch_count,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.flinch_count);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.break_count = imgui.checkbox(
language.current_language.customization_menu.break_count,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.break_count);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.break_max_count = imgui.checkbox(
language.current_language.customization_menu.break_max_count,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.include.break_max_count);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.part_health) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.offset.y, 0.1, -screen.height, screen.height
, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.body_parts.part_health.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_health.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.break_health) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.offset.x, 0.1, -
screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.body_parts.part_break.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.size.height, 0.1, 0, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_break.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.loss_health) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.offset.x, 0.1, -screen.width
, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.offset.y, 0.1, -
screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.offset.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.body_parts.part_loss.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailments) then
changed, config.current_config.large_monster_UI.highlighted.ailments.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.relative_offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.relative_offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.relative_offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.relative_offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.relative_offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.large_monster_UI.highlighted.ailments.spacing.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.spacing.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.hide_ailments_with_zero_buildup = imgui
.checkbox(
language.current_language.customization_menu.hide_ailments_with_zero_buildup,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_ailments_with_zero_buildup);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_inactive_ailments_with_no_buildup_support = imgui
.checkbox(
language.current_language.customization_menu.hide_inactive_ailments_with_no_buildup_support,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_inactive_ailments_with_no_buildup_support);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.hide_all_inactive_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_inactive_ailments,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_all_inactive_ailments);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.hide_all_active_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_all_active_ailments,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_all_active_ailments);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.hide_disabled_ailments = imgui.checkbox(
language.current_language.customization_menu.hide_disabled_ailments,
config.current_config.large_monster_UI.highlighted.ailments.settings.hide_disabled_ailments);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.offset_is_relative_to_parts = imgui.checkbox(
language.current_language.customization_menu.offset_is_relative_to_parts,
config.current_config.large_monster_UI.highlighted.ailments.settings.offset_is_relative_to_parts);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.settings.time_limit = imgui.drag_float(language
.current_language.customization_menu.time_limit,
config.current_config.large_monster_UI.highlighted.ailments.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.small_monster_UI_ailments_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.small_monster_UI_ailments_sorting_type_index,
customization_menu.displayed_ailments_sorting_types);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.ailments.sorting.type = customization_menu.ailments_sorting_types
[customization_menu.small_monster_UI_ailments_sorting_type_index];
end
changed, config.current_config.large_monster_UI.highlighted.ailments.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.highlighted.ailments.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.include.ailment_name = imgui
.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.text_label) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.text_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.text_label.offset.x, 0.1, -screen.width, screen.width
, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.text_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.text_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.text_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.value_label) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.value_label.offset.x, 0.1, -screen.width, screen.width
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.value_label.offset.y, 0.1, -screen.height,
screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.offset.x, 0.1, -screen.width,
screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.offset.x, 0.1, -screen.width
,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.offset.y, 0.1, -
screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.timer_label) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.offset.x, 0.1, -screen.width, screen.width
,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.timer_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.offset.x = imgui.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.offset.y = imgui.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.timer_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.bar) then
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailments.bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailments.bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailments.bar.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.large_monster_UI.highlighted.ailments.bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.large_monster_UI.highlighted.ailments.bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.ailments.bar.colors.background = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailments.bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_buildups) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_spacing) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_spacing.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_spacing.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_spacing) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_spacing.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_spacing.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_spacing.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_spacing.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, customization_menu.large_monster_highlighted_UI_highlighted_buildup_bar_index = imgui.combo(language.current_language
.customization_menu.highlighted_bar, customization_menu.large_monster_highlighted_UI_highlighted_buildup_bar_index
,
customization_menu.displayed_highlighted_buildup_bar_types);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.highlighted_bar = customization_menu.highlighted_buildup_bar_types
[customization_menu.large_monster_highlighted_UI_highlighted_buildup_bar_index];
end
changed, customization_menu.large_monster_highlighted_UI_buildup_bar_relative_index = imgui.combo(language.current_language
.customization_menu.buildup_bars_are_relative_to,
customization_menu.large_monster_highlighted_UI_buildup_bar_relative_index,
customization_menu.displayed_buildup_bar_relative_types);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.buildup_bar_relative_to = customization_menu
.displayed_buildup_bar_relative_types[customization_menu.large_monster_highlighted_UI_damage_bar_relative_index];
end
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.time_limit = imgui.drag_float(language
.current_language.customization_menu.time_limit,
config.current_config.large_monster_UI.highlighted.ailment_buildups.settings.time_limit, 0.1, 0, 99999, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.filter) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.stun = imgui.checkbox(language.current_language
.ailments.stun,
config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.stun);
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.poison = imgui.checkbox(language
.current_language.ailments.poison,
config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.poison);
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.blast = imgui.checkbox(language
.current_language.ailments.blast,
config.current_config.large_monster_UI.highlighted.ailment_buildups.filter.blast);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.large_monster_highlighted_UI_ailment_buildups_sorting_type_index = imgui.combo(language
.current_language.customization_menu.type,
customization_menu.large_monster_highlighted_UI_ailment_buildups_sorting_type_index,
customization_menu.displayed_ailment_buildups_sorting_types);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if changed then
config.current_config.large_monster_UI.highlighted.ailment_buildups.sorting.type = customization_menu.ailment_buildups_sorting_types
[customization_menu.large_monster_highlighted_UI_ailment_buildups_sorting_type_index];
end
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.sorting.reversed_order = imgui.checkbox(
language.current_language.customization_menu.reversed_order,
config.current_config.large_monster_UI.highlighted.ailment_buildups.sorting.reversed_order);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.ailment_name_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.include.ailment_name = imgui
.checkbox(
language.current_language.customization_menu.ailment_name,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.include.ailment_name);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.include.activation_count = imgui
.checkbox(
language.current_language.customization_menu.activation_count,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.include.activation_count);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.offset.y, 0.1,
-screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.ailment_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_name_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.offset.x, 0.1, -
screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.offset.y, 0.1,
-screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.player_name_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_value_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.visibility = imgui
.checkbox(language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.offset.y, 0.1,
-screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_value_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_percentage_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.offset.x,
0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.offset.y,
0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_percentage_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.color = imgui.color_picker_argb(""
, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.offset.x, 0.1,
-screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_buildup_value_label) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.offset.x, 0.1,
-screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.offset.y, 0.1,
-screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.visibility = imgui
.checkbox(
language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.offset.x = imgui
.drag_float(
language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.offset.x,
0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.offset.y = imgui
.drag_float(
language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.offset.y,
0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_value_label.shadow.color = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.total_buildup_label.shadow.color,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.buildup_bar) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.visibility = imgui.checkbox(language
.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.size.width = imgui.drag_float(language
.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.size.width, 0.1, 0, screen.width,
"%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.size.height = imgui.drag_float(language
.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.size.height, 0.1, 0, screen.height
, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.colors.foreground = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.colors.background = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted_buildup_bar) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.visibility = imgui
.checkbox(language.current_language.customization_menu.visible,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.visibility);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.offset.x = imgui
.drag_float(language.current_language.customization_menu.x,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.offset.x, 0.1,
-screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.offset.y = imgui
.drag_float(language.current_language.customization_menu.y,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.offset.y, 0.1,
-screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.size.width = imgui
.drag_float(language.current_language.customization_menu.width,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.size.width, 0.1, 0,
screen.width, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
changed, config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.size.height = imgui
.drag_float(language.current_language.customization_menu.height,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.size.height, 0.1, 0,
screen.height, "%.1f");
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.colors.foreground = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed,
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.colors.background = imgui
.color_picker_argb("",
config.current_config.large_monster_UI.highlighted.ailment_buildups.highlighted_buildup_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
large_monster_highlighted_UI_changed = large_monster_highlighted_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.time_UI) then
changed, config.current_config.time_UI.enabled = imgui.checkbox(language.current_language.customization_menu.enabled,
config.current_config.time_UI.enabled);
config_changed = config_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.position) then
changed, config.current_config.time_UI.position.x = imgui.drag_float(language.current_language.customization_menu.x,
config.current_config.time_UI.position.x,
0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
changed, config.current_config.time_UI.position.y = imgui.drag_float(language.current_language.customization_menu.y,
config.current_config.time_UI.position.y,
0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
changed, customization_menu.time_UI_anchor_index = imgui.combo(language.current_language.customization_menu.anchor,
customization_menu.time_UI_anchor_index,
customization_menu.displayed_anchor_types);
config_changed = config_changed or changed;
if changed then
config.current_config.time_UI.position.anchor = customization_menu.anchor_types[
customization_menu.time_UI_anchor_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.time_label) then
changed, config.current_config.time_UI.time_label.visibility = imgui.checkbox(language.current_language.customization_menu
.visible, config.current_config.time_UI.time_label.visibility);
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.time_UI.time_label.offset.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.time_UI.time_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
changed, config.current_config.time_UI.time_label.offset.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.time_UI.time_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.time_UI.time_label.color = imgui.color_picker_argb("",
config.current_config.time_UI.time_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.time_UI.time_label.shadow.visibility = imgui.checkbox(language.current_language.customization_menu
.visible, config.current_config.time_UI.time_label.shadow.visibility);
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.time_UI.time_label.shadow.offset.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.time_UI.time_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
changed, config.current_config.time_UI.time_label.shadow.offset.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.time_UI.time_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.time_UI.time_label.shadow.color = imgui.color_picker_argb("",
config.current_config.time_UI.time_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
time_UI_changed = time_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.damage_meter_UI) then
changed, config.current_config.damage_meter_UI.enabled = imgui.checkbox(language.current_language.customization_menu.enabled
,
config.current_config.damage_meter_UI.enabled);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.damage_meter_UI.settings.hide_module_if_total_damage_is_zero = imgui.checkbox(
language.current_language.customization_menu.hide_module_if_total_damage_is_zero,
config.current_config.damage_meter_UI.settings.hide_module_if_total_damage_is_zero);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.settings.hide_player_if_player_damage_is_zero = imgui.checkbox(
language.current_language.customization_menu.hide_player_if_player_damage_is_zero,
config.current_config.damage_meter_UI.settings.hide_player_if_player_damage_is_zero);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.settings.hide_total_if_total_damage_is_zero = imgui.checkbox(
language.current_language.customization_menu.hide_total_if_total_damage_is_zero,
config.current_config.damage_meter_UI.settings.hide_total_if_total_damage_is_zero);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.settings.total_damage_offset_is_relative = imgui.checkbox(
language.current_language.customization_menu.total_damage_offset_is_relative,
config.current_config.damage_meter_UI.settings.total_damage_offset_is_relative);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, customization_menu.damage_meter_UI_orientation_index = imgui.combo(language.current_language.customization_menu
.orientation,
customization_menu.damage_meter_UI_orientation_index, customization_menu.displayed_orientation_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.settings.orientation = customization_menu.orientation_types[
customization_menu.damage_meter_UI_orientation_index];
end
changed, customization_menu.damage_meter_UI_highlighted_bar_index = imgui.combo(language.current_language.customization_menu
.highlighted_bar, customization_menu.damage_meter_UI_highlighted_bar_index,
customization_menu.displayed_damage_meter_UI_highlighted_bar_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.settings.highlighted_bar = customization_menu.damage_meter_UI_highlighted_bar_types
[customization_menu.damage_meter_UI_highlighted_bar_index];
end
changed, customization_menu.damage_meter_UI_damage_bar_relative_index = imgui.combo(language.current_language.customization_menu
.damage_bars_are_relative_to, customization_menu.damage_meter_UI_damage_bar_relative_index,
customization_menu.displayed_damage_meter_UI_damage_bar_relative_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.settings.damage_bar_relative_to = customization_menu.damage_meter_UI_damage_bar_relative_types
[customization_menu.damage_meter_UI_damage_bar_relative_index];
end
changed, customization_menu.damage_meter_UI_my_damage_bar_location_index = imgui.combo(language.current_language.customization_menu
.my_damage_bar_location, customization_menu.damage_meter_UI_my_damage_bar_location_index,
customization_menu.displayed_damage_meter_UI_my_damage_bar_location_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.settings.my_damage_bar_location = customization_menu.damage_meter_UI_my_damage_bar_location_types
[customization_menu.damage_meter_UI_my_damage_bar_location_index];
end
changed, customization_menu.damage_meter_UI_dps_mode_index = imgui.combo(language.current_language.customization_menu
.dps_mode, customization_menu.damage_meter_UI_dps_mode_index,
customization_menu.displayed_damage_meter_UI_dps_modes);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.settings.dps_mode = customization_menu.damage_meter_UI_dps_modes[
customization_menu.damage_meter_UI_dps_mode_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.tracked_monster_types) then
local tracked_monster_types_changed = false;
changed, config.current_config.damage_meter_UI.tracked_monster_types.small_monsters = imgui.checkbox(
language.current_language.customization_menu.small_monsters,
config.current_config.damage_meter_UI.tracked_monster_types.small_monsters);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_monster_types_changed = tracked_monster_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_monster_types.large_monsters = imgui.checkbox(
language.current_language.customization_menu.large_monsters,
config.current_config.damage_meter_UI.tracked_monster_types.large_monsters);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_monster_types_changed = tracked_monster_types_changed or changed;
if tracked_monster_types_changed then
for player_id, _player in pairs(player.list) do
_player.update_display(player);
end
player.update_display(player.total);
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.tracked_damage_types) then
local tracked_damage_types_changed = false;
changed, config.current_config.damage_meter_UI.tracked_damage_types.player_damage = imgui.checkbox(language.current_language
.customization_menu.player_damage, config.current_config.damage_meter_UI.tracked_damage_types.player_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.bomb_damage = imgui.checkbox(language.current_language
.customization_menu.bomb_damage,
config.current_config.damage_meter_UI.tracked_damage_types.bomb_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.kunai_damage = imgui.checkbox(language.current_language
.customization_menu.kunai_damage, config.current_config.damage_meter_UI.tracked_damage_types.kunai_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.installation_damage = imgui.checkbox(
language.current_language.customization_menu.installation_damage,
config.current_config.damage_meter_UI.tracked_damage_types.installation_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.otomo_damage = imgui.checkbox(language.current_language
.customization_menu.otomo_damage, config.current_config.damage_meter_UI.tracked_damage_types.otomo_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.monster_damage = imgui.checkbox(language.current_language
.customization_menu.monster_damage, config.current_config.damage_meter_UI.tracked_damage_types.monster_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.poison_damage = imgui.checkbox(language.current_language
.customization_menu.poison_damage, config.current_config.damage_meter_UI.tracked_damage_types.poison_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
changed, config.current_config.damage_meter_UI.tracked_damage_types.blast_damage = imgui.checkbox(language.current_language
.customization_menu.blast_damage, config.current_config.damage_meter_UI.tracked_damage_types.blast_damage);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
tracked_damage_types_changed = tracked_damage_types_changed or changed;
if tracked_damage_types_changed then
for player_id, _player in pairs(player.list) do
player.update_display(_player);
end
player.update_display(player.total);
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.spacing) then
changed, config.current_config.damage_meter_UI.spacing.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.damage_meter_UI.spacing.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.spacing.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.damage_meter_UI.spacing.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.position) then
changed, config.current_config.damage_meter_UI.position.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.damage_meter_UI.position.x, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.position.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.damage_meter_UI.position.y, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, customization_menu.damage_meter_UI_anchor_index = imgui.combo(language.current_language.customization_menu.anchor
,
customization_menu.damage_meter_UI_anchor_index, customization_menu.displayed_anchor_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.position.anchor = customization_menu.anchor_types[
customization_menu.damage_meter_UI_anchor_index];
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.sorting) then
changed, customization_menu.damage_meter_UI_sorting_type_index = imgui.combo(language.current_language.customization_menu
.type,
customization_menu.damage_meter_UI_sorting_type_index, customization_menu.displayed_damage_meter_UI_sorting_types);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if changed then
config.current_config.damage_meter_UI.sorting.type = customization_menu.damage_meter_UI_sorting_types[
customization_menu.damage_meter_UI_sorting_type_index];
end
changed, config.current_config.damage_meter_UI.sorting.reversed_order = imgui.checkbox(language.current_language.customization_menu
.reversed_order, config.current_config.damage_meter_UI.sorting.reversed_order);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.player_name_label) then
changed, config.current_config.damage_meter_UI.player_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.player_name_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.include) then
if imgui.tree_node(language.current_language.customization_menu.me) then
changed, config.current_config.damage_meter_UI.player_name_label.include.myself.hunter_rank = imgui.checkbox(
language.current_language.customization_menu.hunter_rank,
config.current_config.damage_meter_UI.player_name_label.include.myself.hunter_rank);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.myself.word_player = imgui.checkbox(
language.current_language.customization_menu.word_player,
config.current_config.damage_meter_UI.player_name_label.include.myself.word_player);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.myself.player_id = imgui.checkbox(
language.current_language.customization_menu.player_id,
config.current_config.damage_meter_UI.player_name_label.include.myself.player_id);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.myself.player_name = imgui.checkbox(
language.current_language.customization_menu.player_name,
config.current_config.damage_meter_UI.player_name_label.include.myself.player_name);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.other_players) then
changed, config.current_config.damage_meter_UI.player_name_label.include.others.hunter_rank = imgui.checkbox(
language.current_language.customization_menu.hunter_rank,
config.current_config.damage_meter_UI.player_name_label.include.others.hunter_rank);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.others.word_player = imgui.checkbox(
language.current_language.customization_menu.word_player,
config.current_config.damage_meter_UI.player_name_label.include.others.word_player);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.others.player_id = imgui.checkbox(
language.current_language.customization_menu.player_id,
config.current_config.damage_meter_UI.player_name_label.include.others.player_id);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.include.others.player_name = imgui.checkbox(
language.current_language.customization_menu.player_name,
config.current_config.damage_meter_UI.player_name_label.include.others.player_name);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.player_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.player_name_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.player_name_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.player_name_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.player_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.player_name_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.player_name_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.player_name_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.player_name_label.shadow.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.player_name_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.player_name_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.player_name_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.player_name_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.hunter_rank_label) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.hunter_rank_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.enable_for) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.enable_for.me = imgui.checkbox(
language.current_language.customization_menu.me,
config.current_config.damage_meter_UI.hunter_rank_label.enable_for.me);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.hunter_rank_label.enable_for.other_players = imgui.checkbox(
language.current_language.customization_menu.other_players,
config.current_config.damage_meter_UI.hunter_rank_label.enable_for.other_players);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.hunter_rank_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.hunter_rank_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.hunter_rank_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.hunter_rank_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.hunter_rank_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.hunter_rank_label.shadow.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.hunter_rank_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.hunter_rank_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.hunter_rank_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.hunter_rank_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.dps_label) then
changed, config.current_config.damage_meter_UI.dps_label.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.damage_meter_UI.dps_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.dps_label.offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.damage_meter_UI.dps_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.dps_label.offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.damage_meter_UI.dps_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.dps_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.dps_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.dps_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.dps_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.dps_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.dps_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.dps_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.dps_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.dps_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.dps_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.damage_value_label) then
changed, config.current_config.damage_meter_UI.damage_value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.damage_value_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.damage_value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.damage_value_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.damage_value_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.damage_value_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.damage_value_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.damage_value_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.damage_value_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.damage_value_label.shadow.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_value_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.damage_value_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.damage_value_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_value_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.damage_percentage_label) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.damage_percentage_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.damage_percentage_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_percentage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.damage_percentage_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_percentage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.damage_percentage_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.damage_percentage_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_percentage_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.damage_percentage_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.damage_percentage_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_percentage_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_damage_label) then
changed, config.current_config.damage_meter_UI.total_damage_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.total_damage_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_damage_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.total_damage_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_damage_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.total_damage_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_damage_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_damage_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.total_damage_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.total_damage_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_damage_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.total_damage_label.shadow.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_damage_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.total_damage_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_damage_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_damage_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_dps_label) then
changed, config.current_config.damage_meter_UI.total_dps_label.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.damage_meter_UI.total_dps_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_dps_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.total_dps_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_dps_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.total_dps_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_dps_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_dps_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.total_dps_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.total_dps_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_dps_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.total_dps_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_dps_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.total_dps_label.shadow.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_dps_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_dps_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.total_damage_value_label) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.total_damage_value_label.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
-- add text format
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.total_damage_value_label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_damage_value_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.total_damage_value_label.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_damage_value_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.shadow.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.total_damage_value_label.shadow.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.shadow.offset.x = imgui.drag_float(language
.current_language.customization_menu.x,
config.current_config.damage_meter_UI.total_damage_value_label.shadow.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.total_damage_value_label.shadow.offset.y = imgui.drag_float(language
.current_language.customization_menu.y,
config.current_config.damage_meter_UI.total_damage_value_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.damage_meter_UI.total_damage_value_label.shadow.color = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.total_damage_value_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.damage_bar) then
changed, config.current_config.damage_meter_UI.damage_bar.visibility = imgui.checkbox(language.current_language.customization_menu
.visible,
config.current_config.damage_meter_UI.damage_bar.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.damage_bar.offset.x = imgui.drag_float(language.current_language.customization_menu
.x, config.current_config.damage_meter_UI.damage_bar.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_bar.offset.y = imgui.drag_float(language.current_language.customization_menu
.y, config.current_config.damage_meter_UI.damage_bar.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.damage_meter_UI.damage_bar.size.width = imgui.drag_float(language.current_language.customization_menu
.width,
config.current_config.damage_meter_UI.damage_bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.damage_bar.size.height = imgui.drag_float(language.current_language.customization_menu
.height,
config.current_config.damage_meter_UI.damage_bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.damage_meter_UI.damage_bar.colors.foreground = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_bar.colors.foreground, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.damage_meter_UI.damage_bar.colors.background = imgui.color_picker_argb("",
config.current_config.damage_meter_UI.damage_bar.colors.background, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.highlighted_damage_bar) then
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.damage_meter_UI.highlighted_damage_bar.visibility);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.damage_meter_UI.highlighted_damage_bar.offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.damage_meter_UI.highlighted_damage_bar.offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.size) then
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.size.width = imgui.drag_float(language.current_language
.customization_menu.width,
config.current_config.damage_meter_UI.highlighted_damage_bar.size.width, 0.1, 0, screen.width, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.size.height = imgui.drag_float(language.current_language
.customization_menu.height,
config.current_config.damage_meter_UI.highlighted_damage_bar.size.height, 0.1, 0, screen.height, "%.1f");
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.colors) then
if imgui.tree_node(language.current_language.customization_menu.foreground) then
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.colors.foreground = imgui.color_picker_argb(""
, config.current_config.damage_meter_UI.highlighted_damage_bar.colors.foreground,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.background) then
changed, config.current_config.damage_meter_UI.highlighted_damage_bar.colors.background = imgui.color_picker_argb(""
, config.current_config.damage_meter_UI.highlighted_damage_bar.colors.background,
customization_menu.color_picker_flags);
config_changed = config_changed or changed;
damage_meter_UI_changed = damage_meter_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.endemic_life_UI) then
changed, config.current_config.endemic_life_UI.enabled = imgui.checkbox(language.current_language.customization_menu.enabled
, config.current_config.endemic_life_UI.enabled);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.settings) then
changed, config.current_config.endemic_life_UI.settings.hide_inactive_creatures = imgui.checkbox(language.current_language
.customization_menu.hide_inactive_creatures, config.current_config.endemic_life_UI.settings.hide_inactive_creatures);
config_changed = config_changed or changed;
changed, config.current_config.endemic_life_UI.settings.opacity_falloff = imgui.checkbox(language.current_language.customization_menu
.opacity_falloff, config.current_config.endemic_life_UI.settings.opacity_falloff);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.settings.max_distance = imgui.drag_float(language.current_language.customization_menu
.max_distance, config.current_config.endemic_life_UI.settings.max_distance, 1, 0, 10000,
"%.0f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.world_offset) then
changed, config.current_config.endemic_life_UI.world_offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.endemic_life_UI.world_offset.x, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.world_offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.endemic_life_UI.world_offset.y, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.world_offset.z = imgui.drag_float(language.current_language.customization_menu
.z,
config.current_config.endemic_life_UI.world_offset.z, 0.1, -100, 100, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.viewport_offset) then
changed, config.current_config.endemic_life_UI.viewport_offset.x = imgui.drag_float(language.current_language.customization_menu
.x,
config.current_config.endemic_life_UI.viewport_offset.x, 0.1, -screen.width, screen.width, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.viewport_offset.y = imgui.drag_float(language.current_language.customization_menu
.y,
config.current_config.endemic_life_UI.viewport_offset.y, 0.1, -screen.height, screen.height, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.creature_name_label) then
changed, config.current_config.endemic_life_UI.creature_name_label.visibility = imgui.checkbox(language.current_language
.customization_menu.visible,
config.current_config.endemic_life_UI.creature_name_label.visibility);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.endemic_life_UI.creature_name_label.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.endemic_life_UI.creature_name_label.offset.x, 0.1, -screen.width, screen.width,
"%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.creature_name_label.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.endemic_life_UI.creature_name_label.offset.y, 0.1, -screen.height, screen.height,
"%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.endemic_life_UI.creature_name_label.color = imgui.color_picker_argb("",
config.current_config.endemic_life_UI.creature_name_label.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.shadow) then
changed, config.current_config.endemic_life_UI.creature_name_label.shadow.visibility = imgui.checkbox(
language.current_language.customization_menu.visible,
config.current_config.endemic_life_UI.creature_name_label.shadow.visibility);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
if imgui.tree_node(language.current_language.customization_menu.offset) then
changed, config.current_config.endemic_life_UI.creature_name_label.shadow.offset.x = imgui.drag_float(language.current_language
.customization_menu.x,
config.current_config.endemic_life_UI.creature_name_label.shadow.offset.x, 0.1, -screen.width,
screen.width, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
changed, config.current_config.endemic_life_UI.creature_name_label.shadow.offset.y = imgui.drag_float(language.current_language
.customization_menu.y,
config.current_config.endemic_life_UI.creature_name_label.shadow.offset.y, 0.1, -screen.height,
screen.height, "%.1f");
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
if imgui.tree_node(language.current_language.customization_menu.color) then
changed, config.current_config.endemic_life_UI.creature_name_label.shadow.color = imgui.color_picker_argb("",
config.current_config.endemic_life_UI.creature_name_label.shadow.color, customization_menu.color_picker_flags);
config_changed = config_changed or changed;
endemic_life_UI_changed = endemic_life_UI_changed or changed;
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.tree_pop();
end
imgui.end_window();
imgui.pop_font(customization_menu.font);
if small_monster_UI_changed or modifiers_changed then
for _, monster in pairs(small_monster.list) do
small_monster.init_UI(monster);
end
end
if large_monster_dynamic_UI_changed or modifiers_changed then
for _, monster in pairs(large_monster.list) do
large_monster.init_dynamic_UI(monster);
end
end
if large_monster_static_UI_changed or modifiers_changed then
for _, monster in pairs(large_monster.list) do
large_monster.init_static_UI(monster);
end
end
if large_monster_highlighted_UI_changed or modifiers_changed then
for _, monster in pairs(large_monster.list) do
large_monster.init_highlighted_UI(monster);
end
end
if time_UI_changed or modifiers_changed then
time_UI.init_UI();
end
if damage_meter_UI_changed or modifiers_changed then
for _, _player in pairs(player.list) do
player.init_UI(_player);
player.init_total_UI(player.total);
end
end
if endemic_life_UI_changed or modifiers_changed then
for _, creature in pairs(env_creature.list) do
env_creature.init_UI(creature);
end
end
if config_changed then
config.save();
end
end
function customization_menu.init_module()
table_helpers = require("MHR_Overlay.Misc.table_helpers");
language = require("MHR_Overlay.Misc.language");
config = require("MHR_Overlay.Misc.config");
screen = require("MHR_Overlay.Game_Handler.screen");
player = require("MHR_Overlay.Damage_Meter.player");
small_monster = require("MHR_Overlay.Monsters.small_monster");
large_monster = require("MHR_Overlay.Monsters.large_monster");
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
part_names = require("MHR_Overlay.Misc.part_names");
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
customization_menu.init();
end
return customization_menu;
|
local utility = require('shared.utility')
local Page = require('settings.pages.page')
local Settings = require('settings.types')
local Custom
do
local _class_0
local _parent_0 = Page
local _base_0 = { }
_base_0.__index = _base_0
setmetatable(_base_0, _parent_0.__base)
_class_0 = setmetatable({
__init = function(self)
_class_0.__parent.__init(self)
self.title = LOCALIZATION:get('platform_name_custom', 'Custom')
self.settings = {
Settings.Action({
title = LOCALIZATION:get('button_label_starting_bangs', 'Starting bangs'),
tooltip = LOCALIZATION:get('setting_custom_starting_bangs_description', 'These Rainmeter bangs are executed just before any Custom game launches.'),
label = LOCALIZATION:get('button_label_edit', 'Edit'),
perform = function(self)
local path = 'cache\\bangs.txt'
local bangs = COMPONENTS.SETTINGS:getCustomStartingBangs()
io.writeFile(path, table.concat(bangs, '\n'))
return utility.runCommand(('""%s""'):format(io.joinPaths(STATE.PATHS.RESOURCES, path)), '', 'OnEditedCustomStartingBangs')
end
}),
Settings.Action({
title = LOCALIZATION:get('button_label_stopping_bangs', 'Stopping bangs'),
tooltip = LOCALIZATION:get('setting_custom_stopping_bangs_description', 'These Rainmeter bangs are executed just after any Custom game terminates.'),
label = LOCALIZATION:get('button_label_edit', 'Edit'),
perform = function(self)
local path = 'cache\\bangs.txt'
local bangs = COMPONENTS.SETTINGS:getCustomStoppingBangs()
io.writeFile(path, table.concat(bangs, '\n'))
return utility.runCommand(('""%s""'):format(io.joinPaths(STATE.PATHS.RESOURCES, path)), '', 'OnEditedCustomStoppingBangs')
end
})
}
end,
__base = _base_0,
__name = "Custom",
__parent = _parent_0
}, {
__index = function(cls, name)
local val = rawget(_base_0, name)
if val == nil then
local parent = rawget(cls, "__parent")
if parent then
return parent[name]
end
else
return val
end
end,
__call = function(cls, ...)
local _self_0 = setmetatable({}, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
if _parent_0.__inherited then
_parent_0.__inherited(_parent_0, _class_0)
end
Custom = _class_0
end
return Custom
|
local Char = {}
Token = nil
for i = 48, 57 do table.insert(Char, string.char(i)) end
for i = 65, 90 do table.insert(Char, string.char(i)) end
for i = 97, 122 do table.insert(Char, string.char(i)) end
Citizen.CreateThread(function ()
while Token == nil do
Token = GenerateToken(12)
Citizen.Wait(0)
end
end)
RegisterServerEvent("GetShopToken")
AddEventHandler("GetShopToken", function()
TriggerClientEvent("SendShopToken", source, Token)
end)
function GenerateToken(Length)
math.randomseed(os.time())
if Length > 0 then
return GenerateToken(Length - 1) .. Char[math.random(1, #Char)]
else
return ""
end
end
WebHook = "Your webhook here"
Name = "Your webhook's name here"
Logo = "Your webhook's logo here"
LogsRed = 15158332
function Logs(Color, Title, Description)
local Content = {
{
["color"] = Color,
["title"] = Title,
["description"] = Description,
["footer"] = {
["text"] = Name,
["icon_url"] = Logo,
},
}
}
PerformHttpRequest(WebHook, function(err, text, headers) end, 'POST', json.encode({username = Name, embeds = Content}), { ['Content-Type'] = 'application/json' })
end |
AddCSLuaFile()
DEFINE_BASECLASS("base_gmodentity")
ENT.PrintName = "Servo"
ENT.Author = "TankNut"
if SERVER then
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self.NumpadCache = {}
self.Directions = Vector()
end
function ENT:OnRemove()
for _, v in pairs(self.NumpadCache) do
numpad.Remove(v)
end
end
function ENT:Update(ply)
for _, v in pairs(self.NumpadCache) do
numpad.Remove(v)
end
table.Empty(self.NumpadCache)
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Pitch.Forward, "Servo_On", self, "y", 1, self.Pitch.Toggle))
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Pitch.Back, "Servo_On", self, "y", -1, self.Pitch.Toggle))
if not self.Pitch.Toggle then
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Pitch.Forward, "Servo_Off", self, "y", 1))
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Pitch.Back, "Servo_Off", self, "y", -1))
end
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Yaw.Forward, "Servo_On", self, "z", 1, self.Yaw.Toggle))
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Yaw.Back, "Servo_On", self, "z", -1, self.Yaw.Toggle))
if not self.Yaw.Toggle then
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Yaw.Forward, "Servo_Off", self, "z", 1))
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Yaw.Back, "Servo_Off", self, "z", -1))
end
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Roll.Forward, "Servo_On", self, "x", 1, self.Roll.Toggle))
table.insert(self.NumpadCache, numpad.OnDown(ply, self.Roll.Back, "Servo_On", self, "x", -1, self.Roll.Toggle))
if not self.Roll.Toggle then
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Roll.Forward, "Servo_Off", self, "x", 1))
table.insert(self.NumpadCache, numpad.OnUp(ply, self.Roll.Back, "Servo_Off", self, "x", -1))
end
self.Directions = Vector(self.Roll.Start and 1 or 0, self.Pitch.Start and 1 or 0, self.Yaw.Start and 1 or 0)
local phys = self:GetPhysicsObject()
phys:SetMass(self.Mass)
end
function ENT:UpdatePhys(phys)
local brake = Vector(self.Roll.Brake and 0 or 1, self.Pitch.Brake and 0 or 1, self.Yaw.Brake and 0 or 1)
local vel = phys:GetAngleVelocity() * brake
local dir = Vector(self.Roll.Value * self.Directions.x, self.Pitch.Value * self.Directions.y, self.Yaw.Value * self.Directions.z)
for _, v in pairs({"x", "y", "z"}) do
if dir[v] != 0 then
vel[v] = dir[v]
end
end
phys:AddAngleVelocity(vel - phys:GetAngleVelocity())
phys:Wake()
end
function ENT:Think()
BaseClass.Think(self)
local phys = self:GetPhysicsObject()
if IsValid(phys) and not self:IsPlayerHolding() then
self:UpdatePhys(phys)
end
self:NextThink(CurTime() + 0.01)
return true
end
numpad.Register("Servo_On", function(ply, ent, axis, dir, toggle)
if not IsValid(ent) then return end
if toggle then
ent.Directions[axis] = ent.Directions[axis] != 0 and 0 or dir
else
ent.Directions[axis] = dir
end
end)
numpad.Register("Servo_Off", function(ply, ent, axis, dir)
if not IsValid(ent) then return end
if ent.Directions[axis] == dir then
ent.Directions[axis] = 0
end
end)
end
|
-- sveta.lua
-- implements aggregation of abstract data by update date and number of updates
-- grouping by id and data
-- allows desc sorting by date or by (2_week_count + total_count),
-- where 2_week_count is number of updates for last two weeks,
-- this updates automatically by fiber every 24 hours
--
--
-- space[4].enabled = 1
-- space[4].index[0].type = "HASH"
-- space[4].index[0].unique = 1
-- space[4].index[0].key_field[0].fieldno = 0
-- space[4].index[0].key_field[0].type = "NUM"
-- space[4].index[0].key_field[1].fieldno = 1
-- space[4].index[0].key_field[1].type = "STR"
-- space[4].index[1].type = "AVLTREE"
-- space[4].index[1].unique = 0
-- space[4].index[1].key_field[0].fieldno = 0
-- space[4].index[1].key_field[0].type = "NUM"
-- space[4].index[1].key_field[1].fieldno = 3
-- space[4].index[1].key_field[1].type = "NUM"
-- space[4].index[2].type = "AVLTREE"
-- space[4].index[2].unique = 0
-- space[4].index[2].key_field[0].fieldno = 0
-- space[4].index[2].key_field[0].type = "NUM"
-- space[4].index[2].key_field[1].fieldno = 4
-- space[4].index[2].key_field[1].type = "NUM"
-- space[4].index[2].key_field[2].fieldno = 2
-- space[4].index[2].key_field[2].type = "NUM"
-- space[4].index[3].type = "AVLTREE"
-- space[4].index[3].unique = 1
-- space[4].index[3].key_field[0].fieldno = 3
-- space[4].index[3].key_field[0].type = "NUM"
-- space[4].index[3].key_field[1].fieldno = 0
-- space[4].index[3].key_field[1].type = "NUM"
-- space[4].index[3].key_field[2].fieldno = 1
-- space[4].index[3].key_field[2].type = "STR"
--
-- tuple structure:
-- uid, query, total_count, last_ts, 2_week_count, latest_counter(today), ... , earliest_counter(2 weeks ago)
local space_no = 4
local delete_chunk = 100
local max_query_size = 1024
local seconds_per_day = 86400
local two_weeks = 14
local index_of_user_id = 0
local index_of_query = 1
local index_of_total_counter = 2
local index_of_last_ts = 3
local index_of_2_week_counter = 4
local index_of_latest_counter = 5
local index_of_earliest_counter = 18
local old_query_days = 60
local timeout = 0.005
local max_attempts = 5
local n_fibers = 10
local move_channel = box.ipc.channel(n_fibers)
local delete_channel = box.ipc.channel(n_fibers)
function add_query(user_id, query)
if string.len(query) > max_query_size then
error("too long query")
end
uid = box.unpack('i', user_id)
local tuple = box.update(space_no, {uid, query}, "+p=p+p+p", index_of_total_counter, 1, index_of_last_ts, box.time(), index_of_2_week_counter, 1, index_of_latest_counter, 1)
if tuple == nil then
local new_tuple = {}
new_tuple[index_of_user_id] = uid
new_tuple[index_of_query] = query
new_tuple[index_of_total_counter] = 1
new_tuple[index_of_last_ts] = box.time()
new_tuple[index_of_2_week_counter] = 1
new_tuple[index_of_latest_counter] = 1
for i=index_of_latest_counter+1,index_of_earliest_counter do
new_tuple[i] = 0
end
return box.insert(space_no, new_tuple)
end
return tuple
end
function add_old_query(user_id, query, timestamp)
if string.len(query) > max_query_size then
error("too long query")
end
local uid = box.unpack('i', user_id)
local ts = box.unpack('i', timestamp)
if ts > box.time() then
error("unable to add query in future")
end
local days_ago = math.ceil(box.time()/seconds_per_day) - math.ceil(ts/seconds_per_day)
local tuple = box.select(space_no, 0, uid, query)
if tuple == nil then
local new_tuple = {}
new_tuple[index_of_user_id] = uid
new_tuple[index_of_query] = query
new_tuple[index_of_total_counter] = 1
new_tuple[index_of_last_ts] = ts
for i=index_of_latest_counter,index_of_earliest_counter do
new_tuple[i] = 0
end
if( days_ago < two_weeks ) then
new_tuple[index_of_2_week_counter] = 1
new_tuple[index_of_latest_counter + days_ago] = 1
end
return box.insert(space_no, new_tuple)
else
new_ts = math.max(ts, box.unpack('i', tuple[index_of_last_ts]))
if( days_ago < two_weeks ) then
return box.update(space_no, {uid, query}, "+p=p+p+p", index_of_total_counter, 1,index_of_last_ts, new_ts,
index_of_2_week_counter, 1, index_of_latest_counter + days_ago, 1)
else
return box.update(space_no, {uid, query}, "+p=p", index_of_total_counter, 1, index_of_last_ts, new_ts)
end
end
end
function delete_query(user_id, query)
return box.delete(space_no, box.unpack('i', user_id), query)
end
function delete_all(user_id)
uid = box.unpack('i', user_id)
while true do
-- delete by chuncks of dalete_chunk len
local tuples = {box.select_limit(space_no, 1, 0, delete_chunk, uid)}
if( #tuples == 0 ) then
break
end
for _, tuple in ipairs(tuples) do
box.delete(space_no, uid, tuple[1])
end
end
end
local function select_queries_by_index(uid, limit, index)
local resp = {}
local i = 0
for tuple in box.space[space_no].index[index]:iterator(box.index.REQ, uid) do
if i == limit then break end
table.insert(resp, {tuple[index_of_user_id], tuple[index_of_query], tuple[index_of_total_counter], tuple[index_of_last_ts], tuple[index_of_2_week_counter]})
i = i + 1
end
return unpack(resp)
end
function select_recent(user_id, limit)
local uid = box.unpack('i', user_id)
local lim = box.unpack('i', limit)
return select_queries_by_index(uid, lim, 1)
end
function select_2_week_popular(user_id, limit)
local uid = box.unpack('i', user_id)
local lim = box.unpack('i', limit)
return select_queries_by_index(uid, lim, 2)
end
local function move_counters(tuple)
local new_tuple = {}
for i = index_of_user_id,index_of_2_week_counter do
new_tuple[i] = tuple[i]
end
new_tuple[index_of_latest_counter] = box.pack('i', 0)
for i=index_of_latest_counter+1,index_of_earliest_counter do
new_tuple[i] = tuple[i - 1]
end
new_tuple[index_of_2_week_counter] = box.pack('i', box.unpack('i', new_tuple[index_of_2_week_counter]) - box.unpack('i', tuple[index_of_earliest_counter]))
return box.replace(space_no, new_tuple)
end
local function move_counters_fiber()
local tpl = move_channel:get()
while true do
local count = 0
local status, result = pcall(move_counters, tpl)
if status then
--success
tpl = move_channel:get()
else
--exception
count = count + 1
if count == max_attempts then
print('max attempts reached for moving counters for user ', tpl[0], ' query ', tpl[1])
tpl = move_channel:get()
else
box.fiber.sleep(timeout)
end
end
end
end
local function delete_old_queries_fiber()
local tpl = delete_channel:get()
while true do
local count = 0
local status, result = pcall(box.delete, space_no, tpl[0], tpl[1])
if status then
--success
tpl = delete_channel:get()
else
--exception
count = count + 1
if count == max_attempts then
print('max attempts reached for deleting query for user ', tpl[0], ' query ', tpl[1])
tpl = delete_channel:get()
else
box.fiber.sleep(timeout)
end
end
end
end
local function move_all_counters()
local n = 0
print('start moving counters')
local start_time = box.time()
local tuples = {box.select_range(space_no, 3, n_fibers, box.time() - (two_weeks + 1) * seconds_per_day)}
local last_tuple = nil
while true do
if #tuples == 0 then
break
end
for _, t in pairs(tuples) do
move_channel:put(t)
n = n + 1
if n % 1000 == 0 then
box.fiber.sleep(0)
end
last_tuple = t
end
tuples = {box.select_range(space_no, 3, n_fibers, last_tuple[index_of_last_ts], last_tuple[index_of_user_id], last_tuple[index_of_query])}
tuples[1] = nil
end
print('finish moving counters. elapsed ', box.time() - start_time, ' seconds moved ', n, ' tuples')
end
local function delete_old_queries()
local n = 0
print('start delete old queries')
local start_time = box.time()
local tuples = {box.select_reverse_range(space_no, 3, n_fibers, box.time() - old_query_days * seconds_per_day)}
local last_tuple = nil
while true do
if #tuples == 0 then
break
end
for _, t in pairs(tuples) do
delete_channel:put(t)
n = n + 1
if n % 1000 == 0 then
box.fiber.sleep(0)
end
last_tuple = t
end
tuples = {box.select_reverse_range(space_no, 3, n_fibers, last_tuple[index_of_last_ts], last_tuple[index_of_user_id], last_tuple[index_of_query])}
end
print('finish delete old queries. elapsed ', box.time() - start_time, ' seconds, ', n, ' delete requests')
end
local function move_and_delete_fiber()
while true do
local time = box.time()
local sleep_time = math.ceil(time/seconds_per_day)*seconds_per_day - time + 1
print('move_and_delete_fiber: sleep for ', sleep_time, ' seconds')
box.fiber.sleep(sleep_time)
move_all_counters()
delete_old_queries()
end
end
if sveta_started_fibers ~= nil then
for _, fid in pairs(sveta_started_fibers) do
box.fiber.kill(fid)
end
end
sveta_started_fibers = {}
local fiber = box.fiber.wrap(move_and_delete_fiber)
table.insert(sveta_started_fibers, box.fiber.id(fiber))
for i = 1, n_fibers do
fiber = box.fiber.wrap(move_counters_fiber)
table.insert(sveta_started_fibers, box.fiber.id(fiber))
fiber = box.fiber.wrap(delete_old_queries_fiber)
table.insert(sveta_started_fibers, box.fiber.id(fiber))
end
|
C_CovenantCallings = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_CovenantCallings.AreCallingsUnlocked)
---@return boolean unlocked
function C_CovenantCallings.AreCallingsUnlocked() end
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_CovenantCallings.RequestCallings)
function C_CovenantCallings.RequestCallings() end
|
local M = {}
local TMUX = os.getenv('TMUX')
-- This function is taken from 'https://github.com/numToStr/Navigator.nvim'.
M.execute = function(command)
local socket = vim.split(TMUX, ',')[1]
local tmux = string.format('tmux -S %s %s', socket, command)
local handle = assert(io.popen(tmux), string.format('Error: Unable to execute the tmux command ', tmux))
local result = handle:read()
handle:close()
return result
end
M.requirement_passed = function()
-- Check if tmux is installed.
if not TMUX then
return false
end
-- Check if the version number is 1.8 or greater (for 'resize-pane -Z').
if tonumber(M.execute('-V'):match('[0-9.]+')) >= 1.8 then
return true
end
return false
end
M.is_maximized = function()
return M.execute("display-message -p '#{window_zoomed_flag}'") == '1'
end
M.single_pane = function(direction)
-- Check if tmux is installed.
if not TMUX then
return true
end
-- Check if only one pane.
if M.execute("display-message -p '#{window_panes}'") == '1' then
return true
end
-- Check if pane is maximized.
if M.is_maximized() then
return true
end
if not direction then
return
end
-- Compare dimensions of the tmux pane and tmux window in direction
if direction == 'h' or direction == 'l' then
return M.execute("display-message -p '#{pane_width}'") == M.execute("display-message -p '#{window_width}'")
elseif direction == 'j' or direction == 'k' then
return M.execute("display-message -p '#{pane_height}'") == M.execute("display-message -p '#{window_height}'")
end
end
return M
|
workspace "Lumi"
architecture "x64"
startproject "LumiEditor"
configurations
{
"Debug",
"Release",
"RelWithDebInfo",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.architecture}"
group "External"
include "Lumi/ext/entt"
include "Lumi/ext/glad"
include "Lumi/ext/GLFW"
include "Lumi/ext/glm"
include "Lumi/ext/imgui"
include "Lumi/ext/spdlog"
include "Lumi/ext/stb"
include "Lumi/ext/yaml"
group ""
-- Include dirctories relative to root folder
IncludeDir = {}
IncludeDir["entt"] = "%{wks.location}/Lumi/ext/entt/include"
IncludeDir["glad"] = "%{wks.location}/Lumi/ext/glad/include"
IncludeDir["GLFW"] = "%{wks.location}/Lumi/ext/GLFW/include"
IncludeDir["glm"] = "%{wks.location}/Lumi/ext/glm"
IncludeDir["ImGui"] = "%{wks.location}/Lumi/ext/imgui"
IncludeDir["spdlog"] = "%{wks.location}/Lumi/ext/spdlog/include"
IncludeDir["stb"] = "%{wks.location}/Lumi/ext/stb"
IncludeDir["yaml"] = "%{wks.location}/Lumi/ext/yaml/include"
-- Include subpremake
include "Lumi"
include "example"
include "LumiEditor"
|
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Conf = require "moonpie.configuration"
local Files = require "moonpie.utility.files"
local icons = {}
local loaded = false
local function load()
local list = Files.find(Conf.icons_path, "%.png")
for _, v in ipairs(list) do
local n = Files.getName(v)
icons[n] = v
end
loaded = true
end
function icons.get(icon)
if not loaded then
load()
end
return icons[icon]
end
return icons |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'dist/aslt.js'
server_script 'server.lua'
|
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
API = Proxy.getInterface("API")
cAPI = Tunnel.getInterface("API")
RegisterServerEvent('FRP:TITLESWASH:washMoney')
AddEventHandler('FRP:TITLESWASH:washMoney', function()
local _source = source
local User = API.getUserFromSource(source)
local Character = User:getCharacter()
local Inventory = Character:getInventory()
local accountMoney = 0
local bankbag = 0
accountMoney = Inventory:getItemAmount("titles")
bankbag = Inventory:getItemAmount("moneybag")
rewardbank = math.random(200, 800)
if bankbag < 1 then
User:notify("error", "You have nothing to trade.")
else
Inventory:addItem("money", rewardbank)
Inventory:removeItem(-1, "moneybag", 1)
User:notify("item", "money", rewardbank)
end
if accountMoney < 99 then
User:notify("error", "You have nothing to trade.")
else
Inventory:addItem("money", 50)
Inventory:removeItem(-1, "titles", 1)
User:notify("item", "money", 50/100)
end
end) |
object_tangible_scout_camokit_camokit_kashyyyk = object_tangible_scout_camokit_shared_camokit_kashyyyk:new {
}
ObjectTemplates:addTemplate(object_tangible_scout_camokit_camokit_kashyyyk, "object/tangible/scout/camokit/camokit_kashyyyk.iff")
|
--chapter 13
function div0(a, b)
if b == 0 then
error("DIV BY ZERO !")
else
return a / b
end
end
function div1(a, b) return div0(a, b) end
function div2(a, b) return div1(a, b) end
ok, result = pcall(div2, 4, 2); print(ok, result)
ok, err = pcall(div2, 5, 0); print(ok, err)
ok, err = pcall(div2, {}, {}); print(ok, err)
-- chapter 12
-- t={a=1,b=2,c=3}
-- for k,v in pairs(t) do
-- print(k,v)
-- end
-- t={"a","b","c"}
-- for k,v in ipairs(t) do
-- print(k,v)
-- end
-- chapter 11
-- local mt = {}
-- function vector(x, y)
-- local v = {x = x, y = y}
-- setmetatable(v, mt)
-- return v
-- end
-- mt.__add = function(v1, v2)
-- return vector(v1.x + v2.x, v1.y + v2.y)
-- end
-- mt.__sub = function(v1, v2)
-- return vector(v1.x - v2.x, v1.y - v2.y)
-- end
-- mt.__mul = function(v1, n)
-- return vector(v1.x * n, v1.y * n)
-- end
-- mt.__div = function(v1, n)
-- return vector(v1.x / n, v1.y / n)
-- end
-- mt.__len = function(v)
-- return (v.x * v.x + v.y * v.y) ^ 0.5
-- end
-- mt.__eq = function(v1, v2)
-- return v1.x == v2.x and v1.y == v2.y
-- end
-- mt.__index = function(v, k)
-- if k == "print" then
-- return function()
-- print("[" .. v.x .. ", " .. v.y .. "]")
-- end
-- end
-- end
-- mt.__call = function(v)
-- print("[" .. v.x .. ", " .. v.y .. "]")
-- end
-- v1 = vector(1, 2); v1:print()
-- v2 = vector(3, 4); v2:print()
-- v3 = v1 * 2; v3:print()
-- v4 = v1 + v3; v4:print()
-- print(#v2)
-- print(v1 == v2)
-- print(v2 == vector(3, 4))
-- v4()
-- chapter 10
-- function newCounter( )
-- local count =0
-- return function ()
-- count=count+1
-- return count
-- end
-- end
-- c1=newCounter()
-- print(c1())
-- print(c1())
-- c2=newCounter()
-- print(c2())
-- print(c1())
-- print(c2())
-- chapter 9
-- print(123,{2,5,89},"Hello World")
-- chapter 8
-- local function max( ... )
-- local args={...}
-- local val,idx
-- for i=1,#args do
-- if val==nil or args[i]>val then
-- val,idx =args[i],i
-- end
-- end
-- return val,idx
-- end
-- local function assert( v )
-- if not v then fail() end
-- end
-- local v1=max(3,9,7,128,35)
-- assert(v1==128)
-- local v2,i2=max(3,9,7,128,35)
-- assert(v2==128 and i2==4)
-- local v3,i3=max(max(3,9,7,128,35))
-- assert(v3==128 and i3==1)
-- local t={max(3,9,7,128,35)}
-- assert(t[1]==128 and t[2]==4)
-- chapter 7
-- local t={"a","b","c"}
-- t[2]="8"
-- t["foo"]="Bar"
-- local s=t[3]..t[2]..t[1]..t["foo"]..#t
-- local t={"a","b","c"}
-- t[2]="8"
-- local s=t[3]..t[2]..t[1]..t["foo"]..#t |
local action_state = require('telescope.actions.set')
local actions = require('telescope.actions')
require('telescope').load_extension('project')
require('telescope').setup {
defaults = {
file_sorter = require('telescope.sorters').get_fzy_sorter,
prompt_prefix = ' >',
color_devicons = true,
file_previewer = require('telescope.previewers').vim_buffer_cat.new,
grep_previewer = require('telescope.previewers').vim_buffer_vimgrep.new,
qflist_previewer = require('telescope.previewers').vim_buffer_qflist.new,
mappings = {
i = {
["<C-x>"] = false,
["<C-q>"] = actions.smart_send_to_qflist,
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
},
n = {
["<C-w>"] = actions.smart_send_to_qflist,
}
},
layout_config = {
preview_cutoff = 80
}
},
pickers = {
live_grep = {
theme = "ivy",
},
find_files = {
theme = "ivy",
},
},
extensions = {
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
},
file_browser = {
theme = "ivy",
},
}
}
require('telescope').load_extension('fzy_native')
require('telescope').load_extension('file_browser')
local M = {}
M.search_dotfiles = function()
require("telescope.builtin").find_files({
prompt_title = " <VimRC >",
cwd = "~/.config/nvim",
})
end
return M
|
-- A linear boundless 1D space map handler
-- This handler is devised for 1-directional continuous space, where
-- nodes are represented with consecutive integer values: 0, 1, 2, etc.
-- Similar to a range (interval) with no bounds.
-- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0.
-- Implements Node class (from node.lua)
local Node = require 'node'
function Node:initialize(value) self.value = value end
function Node:toString() return ('Node: %d'):format(self.value) end
function Node:isEqualTo(n) return self.value == n.value end
-- Handler implementation
local handler = {}
-- Creates and returns a Node
function handler.getNode(value) return Node(value) end
-- Returns the distance between node a and node b
function handler.distance(a, b) return math.abs(a.value - b.value) end
-- Returns an array of neighbors of node n
function handler.getNeighbors(n)
local neighbors = {}
table.insert(neighbors, handler.getNode(n.value - 1))
table.insert(neighbors, handler.getNode(n.value + 1))
return neighbors
end
return handler
|
object_tangible_gcw_pvp_rank_rewards_pvp_imperial_battle_banner = object_tangible_gcw_pvp_rank_rewards_shared_pvp_imperial_battle_banner:new {
}
ObjectTemplates:addTemplate(object_tangible_gcw_pvp_rank_rewards_pvp_imperial_battle_banner, "object/tangible/gcw/pvp_rank_rewards/pvp_imperial_battle_banner.iff")
|
require("ai.actions.gettargetbase")
function GetTargetCreaturePet:doAction(pAgent)
if (pAgent ~= nil) then
--print("1")
local agent = AiAgent(pAgent)
local command = agent:getLastCommand()
if (command ~= PET_ATTACK and command ~= PET_GUARD and command ~= PET_SPECIAL_ATTACK1 and command ~= PET_SPECIAL_ATTACK2 and command ~= PET_PATROL) then
return BEHAVIOR_FAILURE
end
if (command == PET_GUARD) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget == agent:getFollowObject()) then
local pNewTarget = agent:getTargetFromTargetsDefenders()
if agent:validateTarget(pNewTarget) then
agent:setFollowObject(pNewTarget)
agent:setDefender(pNewTarget)
return BEHAVIOR_SUCCESS
end
elseif agent:validateFollow() then
return BEHAVIOR_SUCCESS
end
elseif (command ~= PET_PATROL ) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
elseif pTarget ~= nil and agent:validateFollow() then
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
end
local creature = CreatureObject(pAgent)
local pTarget = agent:getTargetFromMap()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("2")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("5")
return BEHAVIOR_SUCCESS
end
pTarget = agent:getTargetFromDefenders()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("6")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("9")
return BEHAVIOR_SUCCESS
end
end
return BEHAVIOR_FAILURE
end
function GetTargetCreaturePet:terminate(pAgent)
if pAgent ~= nil then
local agent = AiAgent(pAgent)
if agent:getBehaviorStatus() == BEHAVIOR_FAILURE and agent:getFollowState() ~= PATROLLING then agent:restoreFollowObject() end
end
return 0
end
function GetTargetDroidPet:doAction(pAgent)
if (pAgent ~= nil) then
--print("1")
local agent = AiAgent(pAgent)
local command = agent:getLastCommand()
if (command ~= PET_ATTACK and command ~= PET_GUARD and command ~= PET_PATROL ) then
return BEHAVIOR_FAILURE
end
if (command == PET_GUARD) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget == agent:getFollowObject()) then
local pNewTarget = agent:getTargetFromTargetsDefenders()
if agent:validateTarget(pNewTarget) then
agent:setFollowObject(pNewTarget)
agent:setDefender(pNewTarget)
return BEHAVIOR_SUCCESS
end
elseif agent:validateFollow() then
return BEHAVIOR_SUCCESS
end
elseif (command == PET_ATTACK ) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
elseif pTarget ~= nil and agent:validateFollow() then
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
end
local creature = CreatureObject(pAgent)
local pTarget = agent:getTargetFromMap()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("2")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("5")
return BEHAVIOR_SUCCESS
end
pTarget = agent:getTargetFromDefenders()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("6")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("9")
return BEHAVIOR_SUCCESS
end
end
return BEHAVIOR_FAILURE
end
function GetTargetDroidPet:terminate(pAgent)
if pAgent ~= nil then
local agent = AiAgent(pAgent)
if agent:getBehaviorStatus() == BEHAVIOR_FAILURE and agent:getFollowState() ~= PATROLLING then agent:restoreFollowObject() end
end
return 0
end
function GetTargetFactionPet:doAction(pAgent)
if (pAgent ~= nil) then
--print("1")
local agent = AiAgent(pAgent)
local command = agent:getLastCommand()
if (command ~= PET_ATTACK and command ~= PET_GUARD and command ~= PET_PATROL) then
return BEHAVIOR_FAILURE
end
if (command == PET_GUARD) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget == agent:getFollowObject()) then
local pNewTarget = agent:getTargetFromTargetsDefenders()
if agent:validateTarget(pNewTarget) then
agent:setFollowObject(pNewTarget)
agent:setDefender(pNewTarget)
return BEHAVIOR_SUCCESS
end
elseif agent:validateFollow() then
return BEHAVIOR_SUCCESS
end
elseif (command == PET_ATTACK) then
local pTarget = agent:getLastCommandTarget()
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
elseif pTarget ~= nil and agent:validateFollow() then
return BEHAVIOR_SUCCESS
else
agent:setLastCommandTarget(nil)
end
end
local creature = CreatureObject(pAgent)
local pTarget = agent:getTargetFromMap()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("2")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("5")
return BEHAVIOR_SUCCESS
end
pTarget = agent:getTargetFromDefenders()
--print(pTarget)
if (pTarget ~= nil and pTarget ~= agent:getFollowObject()) then
--print("6")
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
--print("9")
return BEHAVIOR_SUCCESS
end
end
return BEHAVIOR_FAILURE
end
function GetTargetFactionPet:terminate(pAgent)
if pAgent ~= nil then
local agent = AiAgent(pAgent)
if agent:getBehaviorStatus() == BEHAVIOR_FAILURE and agent:getFollowState() ~= PATROLLING then agent:restoreFollowObject() end
end
return 0
end
function GetTargetVillageRaider:doAction(pAgent)
if (pAgent ~= nil) then
local agent = AiAgent(pAgent)
local creature = CreatureObject(pAgent)
local pTarget = agent:getTargetFromMap()
if pTarget ~= nil and pTarget ~= agent:getFollowObject() then
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
pTarget = agent:getTargetFromDefenders()
if pTarget ~= nil and pTarget ~= agent:getFollowObject() then
if agent:validateTarget(pTarget) then
agent:setFollowObject(pTarget)
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
elseif pTarget ~= nil and agent:validateFollow() then
agent:setDefender(pTarget)
return BEHAVIOR_SUCCESS
end
if (agent:isInCombat()) then
agent:clearCombatState(true)
agent:setOblivious()
end
end
return BEHAVIOR_FAILURE
end
|
whale = {}
function whale.load()
whale.isHurt = false
whale.hurtRemaining = 0
whale.x = 400
whale.y = 300
whale.dir = 0
whale.speed = 50
whale.hunger = 100
whale.health = 100
local whale_sprite = love.graphics.newImage("assets/textures/whale.png")
--whale_sprite:setFilter("nearest", "nearest")
--whale_anim = newAnimation(whale_sprite, 32, 64, 1, 3)
end
function whale.draw()
if whale.isHurt then
love.graphics.setColor(255, 0, 0)
else
love.graphics.setColor(255, 255, 255)
end
local whaleImage = love.graphics.newImage("assets/textures/simple_whale.png")
if debug == true then
love.graphics.print("atan2: "..tostring(angle), 10, 40)
love.graphics.print("MouseX: "..tostring(mouseX), 10, 60)
love.graphics.print("MouseY: "..tostring(mouseY), 10, 80)
love.graphics.print("WhaleX: "..tostring(whale.x), 10, 100)
love.graphics.print("WhaleY: "..tostring(whale.y), 10, 120)
love.graphics.print("Distance: "..tostring(distance), 10, 140)
love.graphics.print(game.getTimer(), 10, 160)
end
--love.graphics.draw(whaleImage, whale.x, whale.y, angle+1, 1, 1, 16, 32)
love.graphics.draw(whaleImage, whale.x, whale.y, angle, 1, 1, 16, 0)
end
function whale.update(dt)
--whale_anim:update(dt)
mouseX = love.mouse.getX()
mouseY = love.mouse.getY()
angle = math.atan2(mouseY-whale.y, mouseX-whale.x)
-- finding the distance between the mouse and the whale
distance = dist(whale.x, mouseX, whale.y, mouseY)
local whaleToMouse = {
x = mouseX - whale.x,
y = mouseY - whale.y
}
local fraction = 1/100
whale.x = whale.x + (whaleToMouse.x * fraction)
whale.y = whale.y + (whaleToMouse.y * fraction)
if whale.x < 0 then
whale.x = 800
elseif whale.x > 800 then
whale.x = 0
end
if whale.y < 0 then
whale.y = 600
elseif whale.y > 600 then
whale.y = 0
end
if whale.hunger > 50 then
whale.hunger = whale.hunger - 1*dt
if whale.health < 100 then
whale.health = whale.health + 0.5*dt
end
elseif whale.hunger > 0 then
whale.hunger = whale.hunger - 1*dt
else
whale.health = whale.health - 2*dt
end
if whale.health < 0 then
state = "gameover"
end
if whale.isHurt then
whale.hurtRemaining = whale.hurtRemaining - dt
if whale.hurtRemaining <= 0 then
whale.isHurt = false
end
end
end
function dist(x1, x2, y1, y2)
deltaX = x2 - x1
deltaY = y2 - y1
return math.sqrt(((deltaX)^2)+((deltaY)^2))
end
|
--[[
I'm sure there's a better way to do this
for now - since prune() leaves things in a div -> add - > mul state,
I'll just have this around to convert things to an add -> div -> mul state
TODO make canonical form add -> sub -> mul -> div
--]]
local class = require 'ext.class'
local Visitor = require 'symmath.visitor.Visitor'
local DistributeDivision = class(Visitor)
DistributeDivision.name = 'DistributeDivision'
-- prune beforehand to undo tidy(), to undo subtractions and unary - signs
function DistributeDivision:apply(expr, ...)
--[[
if not expr.simplify then
print(require 'symmath.export.Verbose'(expr))
error("expr "..type(expr).." "..tostring(expr).." doesn't have simplify")
end
return DistributeDivision.super.apply(self, expr:simplify():prune(), ...)
--]]
-- [[
local simplify = require 'symmath.simplify'
local prune = require 'symmath.prune'
return DistributeDivision.super.apply(self, prune(simplify(expr)), ...)
--]]
end
return DistributeDivision
|
plr=game:service'Players'.LocalPlayer
ch=plr.Character
tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
m,mouse=plr:GetMouse(),plr:GetMouse()
cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
combo=false
if ch:findFirstChild("Inficio") then
ch.Inficio:Destroy()
end
local tube=int("Model",ch)
tube.Name='Inficio'
getSound=function(id)
local s=int("Sound",ch.Head)
s.Volume=1
s.SoundId=id
return s
end
hitS=getSound('http://www.roblox.com/asset?id=123252378')
swingS=getSound('http://www.roblox.com/asset?id=154965929')
sheathS=getSound('http://www.roblox.com/asset?id=130785407')
drawS=getSound('http://www.roblox.com/asset?id=130785405')
Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
p0.Position = p1.Position
local w = Instance.new('Motor',par or p0)
w.Part0 = p1
w.Part1 = p0
w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
w.MaxVelocity = .1
return w
end
weld=function(p0,p1,c0)--basic weld function
local w=Instance.new("Weld",p0)
w.Part0=p0
w.Part1=p1
w.C0=c0
return w
end
cp=function(parent,color,size,anchored,cancollide)--creates a part. automagically returns the part so you can edit it manually.
local newp=Instance.new("Part",parent)
newp.Material = "SmoothPlastic"
newp.TopSurface=10
newp.BottomSurface=10
newp.LeftSurface=10
newp.RightSurface=10
newp.FrontSurface=10
newp.BackSurface=10
newp.FormFactor="Custom"
newp.BrickColor=BrickColor.new(color)
newp.Size=size
newp.Anchored=anchored
newp.CanCollide=cancollide
newp:BreakJoints()
return newp
end
Tween = function(Weld, Stop, Step,a)
ypcall(function()
local func = function()
local Start = Weld.C1
local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
local Stop = Stop
local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
for i = 0, 1, Step or .1 do
Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
(Start.p.Y * (1 - i)) + (Stop.p.Y * i),
(Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
(X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
(Z1 * (1 - i)) + (Z2 * i) )
wait()
end
Weld.C1 = Stop
end
if a then coroutine.wrap(func)() else func() end
end)
end
Tween2 = function(Weld, Stop, Step,a)
ypcall(function()--- TweenWeld function (not made by me)
local func = function()
local Start = Weld.CFrame
local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
local Stop = Stop
local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
for i = 0, 1, Step or .1 do
Weld.CFrame = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
(Start.p.Y * (1 - i)) + (Stop.p.Y * i),
(Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
(X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
(Z1 * (1 - i)) + (Z2 * i) )
wait()
end
Weld.CFrame = Stop
end
if a then coroutine.wrap(func)() else func() end
end)
end
cyl=function(prt)
local c=int("CylinderMesh",prt)
return c
end
blo=function(prt)
local c=int("BlockMesh",prt)
return c
end
rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
rabr.Position = torso.Position
rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
w = Instance.new("Weld",tube)
w.Part0,w.Part1 = ch['Right Arm'],rabr
w.C1 = CFrame.new(0,-.5,0)
labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
labr.Position = torso.Position
lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
ww = Instance.new("Weld",tube)
ww.Part0,ww.Part1 = ch['Left Arm'],labr
ww.C1 = CFrame.new(0,-.5,0)
mh=cp(tube,"Brown",Vector3.new(1,1,1))
mw=weld(ch['Right Arm'],mh,CFrame.new(0,-1,0)*ang(mr(-90),0,0))
local b=blo(mh)
b.Scale=Vector3.new(0.23,1,0.23)
local hp=cp(tube,"Bright yellow",Vector3.new(1,1,1))
weld(mh,hp,CFrame.new(0,-0.6,0))
local b=blo(hp)
b.Scale=Vector3.new(0.28,0.28,0.28)
local hpa=cp(tube,"Bright yellow",Vector3.new(1,1,1))
weld(mh,hpa,CFrame.new(0,0.57,0))
local b=blo(hpa)
b.Scale=Vector3.new(0.28,0.15,0.7)
local blade=cp(tube,"Light stone grey",Vector3.new(1,2.6,1))
blade.Material='SmoothPlastic'
blade.TopSurface='SmoothNoOutlines'
weld(hpa,blade,CFrame.new(0,1.4,0))
local b=blo(blade)
b.Scale=Vector3.new(0.18,1,0.53)
local tip=cp(tube,"Light stone grey",Vector3.new(1,0.3,1))
tip.Material='SmoothPlastic'
tip.TopSurface='SmoothNoOutlines'
tip.Name='tip'
weld(blade,tip,CFrame.new(0,1.45,0))
local we=int("SpecialMesh",tip)
we.MeshType='Wedge'
we.Scale=Vector3.new(0.18,1,0.53)
tip.BottomSurface='SmoothNoOutlines'
local blade2=cp(tube,"Bright yellow",Vector3.new(1,2.6,1))
blade2.Material='SmoothPlastic'
blade2.TopSurface='SmoothNoOutlines'
weld(blade,blade2,CFrame.new(0,0,0))
local b=blo(blade2)
b.Scale=Vector3.new(0.19,1,0.2515)
local ring=cp(tube,"Bright yellow",Vector3.new(1,1,1))
ring.Material='SmoothPlastic'
weld(blade,ring,CFrame.new(0,-0.5,0))
local b=blo(ring)
b.Scale=Vector3.new(0.2,0.1,0.54)
local ring=cp(tube,"Bright yellow",Vector3.new(1,1,1))
ring.Material='SmoothPlastic'
weld(blade,ring,CFrame.new(0,-0.7,0))
local b=blo(ring)
b.Scale=Vector3.new(0.2,0.1,0.54)
local ring=cp(tube,"Bright yellow",Vector3.new(1,1,1))
ring.Material='SmoothPlastic'
weld(blade,ring,CFrame.new(0,-1,0))
local b=blo(ring)
b.Scale=Vector3.new(0.2,0.2,0.54)
local tip2=cp(tube,"Bright yellow",Vector3.new(1,0.3,1))
tip2.BottomSurface='SmoothNoOutlines'
tip2.TopSurface='SmoothNoOutlines'
tip2.Material='SmoothPlastic'
weld(blade2,tip2,CFrame.new(0,1.35,0))
local we=int("SpecialMesh",tip2)
we.MeshType='Wedge'
we.Scale=Vector3.new(0.19,0.5,0.2515)
local hpa=cp(tube,"Bright yellow",Vector3.new(1,1,1))
weld(mh,hpa,CFrame.new(0,0.67,0))
local b=blo(hpa)
b.Scale=Vector3.new(0.2,0.1,0.54)
local sht=cp(tube,"Brown",Vector3.new(2.4,0.7,0.3))
weld(torso,sht,CFrame.new(0,0,0.7)*ang(0,0,mr(45)))
sht.Transparency=1
deb=false
sheathed=false
sheath=function()
if sheathed==false then
Spawn(function()
Tween(lw,cfn())
for i=1,10 do
wait()
sht.Transparency=sht.Transparency-0.1
end
end)
Tween(rw,cfn()*ang(mr(-160),mr(-30),0))
sheathS:Play()
mw:Destroy()
ypcall(function()
mw:Destroy()
mw=nil
end)
mw=weld(sht,mh,CFrame.new(1.85,0,0)*ang(mr(90),0,mr(90)))
Tween(rw,cfn())
Tween(lw,cfn())
sheathed=true
rabr:Destroy()
labr:Destroy()
end
end
unsheath=function()
if sheathed==true then
rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
rabr.Position = torso.Position
rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
w = Instance.new("Weld",tube)
w.Part0,w.Part1 = ch['Right Arm'],rabr
w.C1 = CFrame.new(0,-.5,0)
labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
labr.Position = torso.Position
lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
ww = Instance.new("Weld",tube)
ww.Part0,ww.Part1 = ch['Left Arm'],labr
ww.C1 = CFrame.new(0,-.5,0)
Spawn(function()
Tween(lw,cfn())
for i=1,10 do
wait()
sht.Transparency=sht.Transparency+0.1
end
end)
Tween(rw,cfn()*ang(mr(-160),mr(-30),0))
drawS:Play()
mw:Destroy()
ypcall(function()
mw:Destroy()
mw=nil
end)
mw=weld(ch['Right Arm'],mh,CFrame.new(0,-1,0)*ang(mr(-90),0,0))
Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)))
Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)))
sheathed=false
end
end
attacks={
[1]={function()
deb=true
combo=true
Spawn(function()
Tween(lw,cfn()*ang(mr(-40),mr(5),mr(20)),0.1)
end)
Tween(rw,cfn()*ang(mr(-115),mr(-15),mr(-60)),0.1)
wait(0.1)
swingS:Play()
Spawn(function()
Tween(lw,cfn()*ang(mr(35),mr(5),mr(20)),0.2)
end)
Tween(rw,cfn()*ang(mr(30),mr(-15),mr(-60)),0.2)
deb=false
combo=false
wait(3)
if combo==false then Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)),0.4) Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.4) end
end};
[2]={function()
deb=true
combo=true
Spawn(function()
Tween(rj,cfn()*ang(0,mr(-90),0))
end)
Tween(rw,cfn()*ang(mr(0),mr(0),mr(-90)),0.1)
Tween(rw,cfn()*ang(mr(80),mr(0),mr(-90)),0.25)
swingS:Play()
Tween(rj,cfn()*ang(0,mr(0),0),0.2)
deb=false
combo=false
wait(3)
if combo==false then Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)),0.4) Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.4) end
end};
[3]={function()
deb=true
combo=true
Tween(rw,cfn()*ang(mr(0),mr(0),mr(-90)),0.1)
torso.Anchored=true
swingS:Play()
Spawn(function()
wait(0.3)
swingS:Play()
end)
for i=1,13 do
wait()
torso.CFrame=torso.CFrame*ang(0,0.5,0)
end
torso.Anchored=false
deb=false
combo=false
wait(3)
if combo==false then Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)),0.4) Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.4) end
end};
[4]={function()
deb=true
combo=true
Spawn(function()
Tween(lw,cfn()*ang(mr(-40),mr(5),mr(20)),0.1)
end)
Tween(rw,cfn()*ang(mr(-115),mr(15),mr(60)),0.1)
wait(0.1)
swingS:Play()
Spawn(function()
Tween(lw,cfn()*ang(mr(35),mr(5),mr(20)),0.2)
end)
Tween(rw,cfn(0,0,1.3)*ang(mr(30),mr(15),mr(60)),0.2)
deb=false
combo=false
wait(3)
if combo==false then Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)),0.4) Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.4) end
end}
}
rj.C0=cfn()
rj.C1=cfn()
Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)))
Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)))
drawLine=function(point_a,point_b,bc_code)
local dist=(point_a-point_b).magnitude;
local rad=dist/2;
local line=Instance.new('Part',tube) --reparent as u wish
line.Material = 'SmoothPlastic'
line.FrontSurface = 10
line.BackSurface = 10
line.LeftSurface = 10
line.RightSurface = 10
line.TopSurface = 10
line.BottomSurface = 10
line.Anchored=true;
line.FormFactor='Custom';
--line.Transparency=0.4
line.Color=BrickColor.new(bc_code).Color;
line.CanCollide=false;
line.Size=Vector3.new(.1,.1,dist);
Instance.new("BlockMesh",line).Name='blok'
line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad);
return line;
end;
last=tip.CFrame;
sprint=false
gbg=nil
ghax=nil
gweld=nil
haxing=false
shield=false
m.Button1Down:connect(function()
if deb==false and haxing==false and sheathed==false and shield==false then
attacks[math.random(1,#attacks)][1]()
end
end)
m.KeyDown:connect(function(key)
if string.byte(key)==48 then
if deb==false then
deb=true
sprint=true
Spawn(function()
Tween(rw,cfn()*ang(mr(45),mr(-5),mr(-10)),0.3)
end)
Tween(lw,cfn()*ang(mr(45),mr(5),mr(10)),0.3)
ch.Humanoid.WalkSpeed=35
end
end
if key=='f' and shield==false and deb==false and combo==false and sheathed==false then
shield=true
combo=true
local bg = Instance.new("BodyGyro",tor)
bg.maxTorque = Vector3.new(1,1,1)*9e7
gbg=bg
game:service'RunService'.Stepped:connect(function()
bg.cframe = CFrame.new(tor.Position,mouse.Hit.p*Vector3.new(1,0,1)+tor.Position*Vector3.new(0,1,0)) * CFrame.Angles(0,math.rad(-90),0)
end)
Tween(lw,cfn()*ang(mr(0),mr(0),mr(90)),0.2)
local shd=cp(tube,"Bright yellow",Vector3.new(3.4,3.4,0.2),false,true)
shd.Transparency=1
local shdw=weld(ch['Left Arm'],shd,CFrame.new(0,-1,0)*ang(mr(90),0,0))
gweld=shdw
ghax=shd
local shdp1=cp(shd,"Br. yellowish orange",Vector3.new(3,3,0.2))
blo(shdp1).Scale=Vector3.new(1.01,1,1.01)
weld(shd,shdp1,cfn())
shdp1.Transparency=1
local shdp2=cp(shd,"Br. yellowish orange",Vector3.new(3,0.3,0.2),false,true)
blo(shdp2).Scale=Vector3.new(1.01,1,1.01)
shdp2.Transparency=1
weld(shd,shdp2,cfn(0,2.2,0))
local shdp3=cp(shd,"Br. yellowish orange",Vector3.new(2.5,0.3,0.2),false,true)
blo(shdp3).Scale=Vector3.new(1.01,1,1.01)
shdp3.Transparency=1
weld(shd,shdp3,cfn(0,-2.2,0))
for i=1,5 do
wait()
shd.Transparency=shd.Transparency-0.15
shdp1.Transparency=shdp1.Transparency-0.15
shdp2.Transparency=shdp2.Transparency-0.15
shdp3.Transparency=shdp3.Transparency-0.15
end
end
end)
lasta=nil
cnct=function(prt)
local lastz=prt.CFrame
Spawn(function()
while wait() do
coroutine.resume(coroutine.create(function()
local a=prt
local c=a.CFrame;
local m=(c.p-lastz.p).magnitude;
if(m>1)then
local l=drawLine(lastz.p,c.p,'Bright yellow');
lastz=c;
for i=1,10 do
wait()
l.Transparency=l.Transparency+0.1
l.blok.Scale=l.blok.Scale-Vector3.new(0.1,0.1,0)
end
game:service'Debris':addItem(l,1);
end;
end));
end
end)
end
m.KeyUp:connect(function(key)
if string.byte(key)==48 then
if deb==true then
Spawn(function()
Tween(rw,cfn()*ang(mr(-15),mr(-5),mr(-10)),0.3)
end)
Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.3)
ch.Humanoid.WalkSpeed=16
deb=false
sprint=false
end
end
if key=='q' then
if sheathed==false and combo==false and shield==false and deb==false then
deb=true
combo=true
sheath()
combo=false
deb=false
elseif sheathed==true and combo==false and deb==false then
deb=true
unsheath()
deb=false
end
elseif key=='f' and shield==true then
ypcall(function()
gbg:Destroy()
end)
Tween(lw,cfn()*ang(mr(15),mr(5),mr(10)),0.2)
combo=false
local a=ghax:children()
for i=1,5 do
wait()
ghax.Transparency=ghax.Transparency+0.15
for _,v in pairs(a) do
if v.className=='Part' then
v.Transparency=v.Transparency+0.15
end
end
end
ghax:Destroy()
gweld:Destroy()
shield=false
end
end)
atdeb=false
lastthing=nil
blade.Touched:connect(function(p)
if atdeb==false then
if p.Parent:findFirstChild("Humanoid") and deb==true and sprint==false then
atdeb=true
hitS:Play()
p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-math.random(25,35)
lastthing=p.Parent.Name
wait(0.65)
atdeb=false
end
end
end)
while wait() do
if deb==false then
last=tip.CFrame
--Tween(rw,cfn()*ang(mr(-70),mr(-40),0),0.02)
--Tween(rw,cfn()*ang(mr(-60),mr(-30),0),0.02)
else
coroutine.resume(coroutine.create(function()
local a=tube:waitForChild'tip'
local c=a.CFrame;
local m=(c.p-last.p).magnitude;
if(m>1)then
local l=drawLine(last.p,c.p,'Bright yellow');
last=c;
for i=1,10 do
wait()
l.Transparency=l.Transparency+0.1
l.blok.Scale=l.blok.Scale-Vector3.new(0.1,0.1,0)
end
game:service'Debris':addItem(l,1);
end;
end));
end
end |
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
_G.ts = { http = {}, client_request = {}, ctx = {} }
_G.TS_LUA_HOOK_TXN_CLOSE = 4
_G.TS_LUA_REMAP_DID_REMAP = 1
describe("Busted unit testing framework", function()
describe("script for ATS Lua Plugin", function()
it("test - module.split", function()
local module = require("module")
local results = module.split('a,b,c', ',')
assert.are.equals('a', results[1])
assert.are.equals('b', results[2])
end)
it("test - module.set_hook", function()
stub(ts, "hook")
local module = require("module")
module.set_hook()
assert.stub(ts.hook).was.called_with(TS_LUA_HOOK_TXN_CLOSE, module.test)
end)
it("test - module.set_context", function()
local module = require("module")
module.set_context()
assert.are.equals('test10', ts.ctx['test'])
end)
it("test - module.check_internal", function()
stub(ts.http, "is_internal_request").returns(0)
local module = require("module")
local result = module.check_internal()
assert.are.equals(0, result)
end)
it("test - module.return_constant", function()
local module = require("module")
local result = module.return_constant()
assert.are.equals(TS_LUA_REMAP_DID_REMAP, result)
end)
end)
end)
|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "PreGame",
id = "Achievements",
PlaceObj('XTemplateTemplate', {
'__template', "OverlayDlg",
'Dock', false,
'HandleMouse', true,
}, {
PlaceObj('XTemplateCode', {
'run', function (self, parent, context)
parent:SetMaxWidth(550)
parent:SetHAlign("right")
parent:SetPadding(box(80,50,80,80))
UIShowParadoxFeeds(nil, false)
end,
}),
PlaceObj('XTemplateFunc', {
'name', "OnDelete",
'func', function (self, ...)
UIShowParadoxFeeds(nil, true)
end,
}),
PlaceObj('XTemplateWindow', {
'__class', "XLabel",
'Dock', "top",
'HAlign', "right",
'TextFont', "PGModTitle",
'TextColor', RGBA(119, 198, 255, 255),
'Translate', true,
'Text', T{856797454991, --[[XTemplate Achievements Text]] "ACHIEVEMENTS"},
}),
PlaceObj('XTemplateWindow', {
'__class', "XFrame",
'Margins', box(-80, 6, -155, -100),
'Dock', "top",
'VAlign', "top",
'Image', "UI/Common/bm_pad_small.tga",
'FrameBox', box(170, 0, 165, 0),
'SqueezeY', false,
}),
PlaceObj('XTemplateWindow', {
'__context', function (parent, context) return {unlocked = GetUnlockedAchievementsCount(), total=#DataInstances.Achievement} end,
'__class', "XText",
'Dock', "top",
'HAlign', "right",
'TextFont', "PGModAuthorDate",
'TextColor', RGBA(119, 198, 255, 255),
'RolloverTextColor', RGBA(119, 198, 255, 255),
'Translate', true,
'Text', T{599355083725, --[[XTemplate Achievements Text]] "Unlocked <white><unlocked> / <total>"},
}),
PlaceObj('XTemplateAction', {
'ActionId', "close",
'ActionName', T{4523, --[[XTemplate Achievements ActionName]] "CLOSE"},
'ActionToolbar', "ActionBar",
'ActionShortcut', "Escape",
'ActionGamepad', "ButtonB",
'OnActionEffect', "close",
'__condition', function (parent, context) return not GetXDialog("IGMainMenu") end,
}),
PlaceObj('XTemplateAction', {
'ActionId', "close",
'ActionName', T{4523, --[[XTemplate Achievements ActionName]] "CLOSE"},
'ActionToolbar', "ActionBar",
'ActionShortcut', "Escape",
'ActionGamepad', "ButtonB",
'OnActionEffect', "mode",
'__condition', function (parent, context) return GetXDialog("IGMainMenu") end,
}),
PlaceObj('XTemplateWindow', {
'__class', "XList",
'Id', "idList",
'Margins', box(-60, 10, 0, 10),
'BorderWidth', 0,
'LayoutVSpacing', 10,
'UniformRowHeight', true,
'Clip', false,
'Background', RGBA(0, 0, 0, 0),
'FocusedBackground', RGBA(0, 0, 0, 0),
'VScroll', "idScroll",
'ShowPartialItems', false,
'MouseScroll', false,
}, {
PlaceObj('XTemplateForEach', {
'array', function (parent, context) return DataInstances.Achievement end,
'condition', function (parent, context, item, i) return IsDlcAvailable(item.dlc) end,
'__context', function (parent, context, item, i, n) return item end,
'run_after', function (child, context, item, i, n)
child.idImage:SetImage("UI/Achievements/" .. item.image .. ".tga")
if not GetAchievementFlags(item.name) then
-- gray out locked ones
child.idPad:SetEnabled(false)
child.idImage:SetEnabled(false)
child.idTitle:SetEnabled(false)
child.idText:SetEnabled(false)
end
end,
}, {
PlaceObj('XTemplateWindow', {
'comment', "achievement item",
'IdNode', true,
'RolloverZoom', 1050,
'HandleMouse', true,
}, {
PlaceObj('XTemplateWindow', {
'__class', "XImage",
'Id', "idPad",
'Margins', box(200, 0, 0, 0),
'Dock', "box",
'HAlign', "left",
'VAlign', "top",
'ScaleModifier', point(450, 300),
'Image', "UI/Common/bm_buildings_pad.tga",
'Angle', 10800,
}),
PlaceObj('XTemplateWindow', {
'__class', "XImage",
'Id', "idImage",
'Dock', "left",
'HAlign', "left",
'VAlign', "top",
'Image', "UI/Common/mission_yes.tga",
}),
PlaceObj('XTemplateWindow', {
'__class', "XLabel",
'Id', "idTitle",
'Margins', box(6, 6, 0, 0),
'Dock', "top",
'HAlign', "left",
'VAlign', "center",
'MinWidth', 200,
'TextFont', "PGModTags",
'TextColor', RGBA(244, 228, 117, 255),
'RolloverTextColor', RGBA(244, 228, 117, 255),
'DisabledTextColor', RGBA(100, 100, 100, 255),
'DisabledRolloverTextColor', RGBA(100, 100, 100, 255),
'Translate', true,
'Text', T{583679719179, --[[XTemplate Achievements Text]] "<display_name>"},
}),
PlaceObj('XTemplateWindow', {
'__class', "XText",
'Id', "idText",
'Margins', box(6, -10, 0, 0),
'Padding', box(2, 0, 2, 0),
'HAlign', "left",
'VAlign', "center",
'MinWidth', 200,
'TextFont', "Version",
'TextColor', RGBA(255, 255, 255, 255),
'RolloverTextColor', RGBA(255, 255, 255, 255),
'DisabledTextColor', RGBA(140, 140, 140, 255),
'DisabledRolloverTextColor', RGBA(140, 140, 140, 255),
'Translate', true,
'Text', T{611518845262, --[[XTemplate Achievements Text]] "<CompleteText>"},
'TextVAlign', "center",
}),
}),
}),
}),
PlaceObj('XTemplateWindow', {
'__class', "XPageScroll",
'Id', "idScroll",
'Dock', "bottom",
'Target', "idList",
}),
}),
})
|
--[[
*************************************************************
* Load Application Config.
*************************************************************
]]
local ngx = ngx
local m_config = {}
function m_config.initial(self)
local run_env = ngx.ctx.app.run_env
local prefix = "config.config"
local suffix = ""
if "dev" == run_env then
suffix = "Dev"
elseif "test" == run_env then
suffix = "Test"
elseif "prod" == run_env then
suffix = "Prod"
end
ngx.ctx.app.env_config = require(prefix .. suffix)
if not ngx.ctx.app.env_config then
error("application run env error")
end
end
function m_config.get_config(self, key)
if nil == key then
return ngx.ctx.app.env_config
else
return ngx.ctx.app.env_config[key]
end
return nil
end
return m_config
|
scoreManager = {}
local note
function scoreManager.ResetCombo()
scoreManager.combo = 0
end
function scoreManager.AddHealth(value)
gameManager.health = gameManager.health + value
if gameManager.health > 100 then
gameManager.health = 100
end
end
function scoreManager.AddCombo()
scoreManager.combo = scoreManager.combo + 1
end
function scoreManager.Restart()
scoreManager.score = 0
scoreManager.combo = 0
scoreManager.maxCombo = 0
scoreManager.misses = 0
scoreManager.hits = 0
scoreManager.destroyednotes = 0
scoreManager.destroyedArrows = 0
scoreManager.totalBlueArrows = 0
scoreManager.totalBlueSliders = 0
scoreManager.totalYellowArrows = 0
scoreManager.totalYellowSliders = 0
scoreManager.collectedBlueArrows = 0
scoreManager.collectedBlueSliders = 0
scoreManager.collectedYellowArrows = 0
scoreManager.collectedYellowSliders = 0
scoreManager.collectedRedArrows = 0
scoreManager.collectedRedSliders = 0
end
function scoreManager.CalculateTotalNotes()
scoreManager.totalBlueArrows = 0
scoreManager.totalBlueSliders = 0
scoreManager.totalYellowArrows = 0
scoreManager.totalYellowSliders = 0
note = 1
for i, v in ipairs(mapNotes) do
if #mapNotes >= note then
if mapNotes[note][1] == 1 and mapNotes[note][4] == 0 then scoreManager.totalBlueArrows = scoreManager.totalBlueArrows + 1
elseif mapNotes[note][1] == 1 and mapNotes[note][4] ~= 0 then scoreManager.totalBlueSliders = scoreManager.totalBlueSliders + 1
elseif mapNotes[note][1] == 2 and mapNotes[note][4] == 0 then scoreManager.totalYellowArrows = scoreManager.totalYellowArrows + 1
elseif mapNotes[note][1] == 2 and mapNotes[note][4] ~= 0 then scoreManager.totalYellowSliders = scoreManager.totalYellowSliders + 1
end
note = note + 1
end
end
end
function scoreManager.AddScore(type)
if (type == "perfect") then
scoreManager.AddCombo()
scoreManager.hits = scoreManager.hits + 1
scoreManager.AddHealth(5)
scoreManager.score = scoreManager.score + 300 * scoreManager.combo * scoreManager.modMultiplier
elseif (type == "sliderStart") then
scoreManager.AddHealth(2)
scoreManager.score = scoreManager.score + 100 * scoreManager.combo * scoreManager.modMultiplier
elseif (type == "sliderEnd") then
scoreManager.AddCombo()
scoreManager.hits = scoreManager.hits + 1
scoreManager.AddHealth(2)
scoreManager.score = scoreManager.score + 100 * scoreManager.combo * scoreManager.modMultiplier
elseif (type == "miss") then
if scoreManager.combo > scoreManager.maxCombo then scoreManager.maxCombo = scoreManager.combo end
scoreManager.ResetCombo()
scoreManager.AddHealth(-20)
scoreManager.misses = scoreManager.misses + 1
elseif (type == "bad") then
if scoreManager.combo > scoreManager.maxCombo then scoreManager.maxCombo = scoreManager.combo end
scoreManager.ResetCombo()
scoreManager.AddHealth(-25)
scoreManager.misses = scoreManager.misses + 1
scoreManager.score = scoreManager.score - 100
if (scoreManager.score < 0) then
scoreManager.score = 0
end
end
end
function scoreManager:update(dt)
scoreManager.modMultiplier = 1.00
if modManager.isHalfSpeed then
scoreManager.modMultiplier = scoreManager.modMultiplier - 0.50
end
if modManager.isDoubleSpeed then
scoreManager.modMultiplier = scoreManager.modMultiplier + 0.50
end
if modManager.isHidden then
scoreManager.modMultiplier = scoreManager.modMultiplier + 0.25
end
if modManager.isFlashlight then
scoreManager.modMultiplier = scoreManager.modMultiplier + 0.25
end
if modManager.isNoFail then
scoreManager.modMultiplier = scoreManager.modMultiplier - 0.25
end
if modManager.isAuto then
scoreManager.modMultiplier = 0
end
end
function scoreManager.setHighScore()
saveManager.highscores.mapScore[mapList.getSelectedMapIndex()] = scoreManager.score
saveManager.highscores.mapGrade[mapList.getSelectedMapIndex()] = scoreManager.getGrade()
saveManager:saveHighscore()
end
function scoreManager:draw()
love.graphics.setFont(squareButtonsmallFont)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.printf(scoreManager.combo .. "x", 5, gh - 50, gw, "left")
love.graphics.printf(string.format("%08d", scoreManager.score), 0, 0, gw, "right")
love.graphics.setFont(buttonSmallFont)
love.graphics.printf(string.format("%0.2f", scoreManager.getAccuracy()) .. "%", 0, 50, gw, "right")
end
function scoreManager.getAccuracy()
if scoreManager.destroyednotes == 0 or (scoreManager.destroyednotes - scoreManager.misses) / scoreManager.destroyednotes * 100 == 100 then
return 100
else
return (scoreManager.destroyednotes - scoreManager.misses) / scoreManager.destroyednotes * 100
end
end
function scoreManager.getGrade()
if scoreManager.getAccuracy() == 100 then
return "SS"
elseif scoreManager.getAccuracy() >= 98 then
return "S"
elseif scoreManager.getAccuracy() >= 95 then
return "A"
elseif scoreManager.getAccuracy() >= 90 then
return "B"
elseif scoreManager.getAccuracy() >= 85 then
return "C"
elseif scoreManager.getAccuracy() >= 0 then
return "D"
else
return ""
end
end
function scoreManager.getGradeColor(grade)
if grade == "SS" then
return {255 / 255, 215 / 255, 55 / 255, 1}
elseif grade == "S" then
return {255 / 255, 215 / 255, 55 / 255, 1}
elseif grade == "A" then
return {153 / 255, 199 / 255, 59 / 255, 1}
elseif grade == "B" then
return {51 / 255, 152 / 255, 220 / 255, 1}
elseif grade == "C" then
return {116 / 255, 94 / 255, 198 / 255, 1}
else
return {242 / 255, 75 / 255, 60 / 255, 1}
end
end
return scoreManager
|
class("GetRefundInfoCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.ConnectionMgr.GetInstance():Send(11023, {
type = 1
}, 11024, function (slot0)
if slot0.result == 0 then
getProxy(PlayerProxy).setRefundInfo(slot1, slot0.shop_info)
pg.m02:sendNotification(GAME.REFUND_INFO_UPDATE)
if slot0 and slot0:getBody() and slot0:getBody().callback then
slot0:getBody().callback()
end
end
end)
end
return class("GetRefundInfoCommand", pm.SimpleCommand)
|
Broadcaster = {}
function Broadcaster.broadcastCurrentMapInfo(map)
local resName = map.resname
local mapRes = getResourceFromName(resName)
local mapInfo = {
name = getResourceInfo(mapRes, "name"),
resourceName = resName,
timesPlayed = 0,
author = getResourceInfo(mapRes, "author") or "",
description = getResourceInfo(mapRes, "description") or "",
lastTimePlayed = false,
uploadDate = getResourceInfo(mapRes, "uploadtick") or false
}
-- This should be async!!!
local mapQuery = executeSQLQuery("SELECT infoName, playedCount, resName, lastTimePlayed FROM race_mapmanager_maps WHERE lower(resName) = ?", string.lower(resName))
if #mapQuery >= 1 then
mapInfo.timesPlayed = mapQuery[1].playedCount or 0
mapInfo.lastTimePlayed = mapQuery[1].lastTimePlayed or false
end
setElementData(root, "map_window.currentMapInfo", mapInfo)
end
addEvent("onMapStarting")
addEventHandler("onMapStarting", root, Broadcaster.broadcastCurrentMapInfo)
function Broadcaster.clearCurrentMapInfo()
removeElementData(root, "map_window.currentMapInfo")
end
addEvent("onRaceStateChanging")
addEventHandler("onRaceStateChanging", root, function(state) if state == "NoMap" then Broadcaster.clearCurrentMapInfo() end end)
local function protectElementData(key, old, new)
if key == "map_window.currentMapInfo" and sourceResource ~= getThisResource() then
outputDebugString("Element data: " .. key .. " changed outside of map_window. Changing back to original value.", 1)
setElementData(source, key, old)
end
end
addEventHandler("onElementDataChange", root, protectElementData)
|
function update (elapsed)
if curStep >= 1340 and curStep < 1600 then
local currentBeat = (songPos / 1000)*(bpm/180)
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 30 * math.sin((currentBeat + i*0.20) * math.pi), i)
end
else
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'],i)
end
end
end |
local function check(a, b)
if a ~= b then
error("check failed with "..tostring(a).." ~= "..tostring(b), 2)
end
end
local x,y = 0/0,1
check(x<x, false)
check(x<=x, false)
check(x>x, false)
check(x>=x, false)
check(x==x, false)
check(x~=x, true)
check(x<y, false)
check(x<=y, false)
check(x>y, false)
check(x>=y, false)
check(x==y, false)
check(x~=y, true)
check(y<x, false)
check(y<=x, false)
check(y>x, false)
check(y>=x, false)
check(y==x, false)
check(y~=x, true)
check(x<1, false)
check(x<=1, false)
check(x>1, false)
check(x>=1, false)
check(x==1, false)
check(x~=1, true)
check(1<x, false)
check(1<=x, false)
check(1>x, false)
check(1>=x, false)
check(1==x, false)
check(1~=x, true)
check(not (x<x), true)
check(not (x<=x), true)
check(not (x>x), true)
check(not (x>=x), true)
check(not (x==x), true)
check(not (x~=x), false)
check(not (x<y), true)
check(not (x<=y), true)
check(not (x>y), true)
check(not (x>=y), true)
check(not (x==y), true)
check(not (x~=y), false)
check(not (y<x), true)
check(not (y<=x), true)
check(not (y>x), true)
check(not (y>=x), true)
check(not (y==x), true)
check(not (y~=x), false)
check(not (x<1), true)
check(not (x<=1), true)
check(not (x>1), true)
check(not (x>=1), true)
check(not (x==1), true)
check(not (x~=1), false)
check(not (1<x), true)
check(not (1<=x), true)
check(not (1>x), true)
check(not (1>=x), true)
check(not (1==x), true)
check(not (1~=x), false)
|
--[[
Copyright (c) 2013 David Young dayoung@goliathdesigns.com
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
]]
require "DebugUtilities"
require "SandboxUtilities"
local agents = {};
local function DrawPaths()
for index = 1, #agents do
local agent = agents[index];
if (agent:GetHealth() > 0) then
local path = agent:GetPath();
DebugUtilities_DrawPath(path, false, Vector.new(0, 0.02, 0));
Core.DrawSphere(agent:GetTarget(), 0.1, DebugUtilities.Red, true);
end
end
end
function Sandbox_Cleanup(sandbox)
end
function Sandbox_HandleEvent(sandbox, event)
if (event.source == "keyboard" and event.pressed) then
local key = event.key;
if ( key == "space_key" ) then
SandboxUtilities_ShootBox(sandbox);
elseif ( key == "f1_key" ) then
local drawDebug = Sandbox.GetDrawPhysicsWorld(sandbox);
Sandbox.SetDrawPhysicsWorld(sandbox, not drawDebug);
elseif ( key == "f2_key" ) then
Sandbox.SetCameraPosition(sandbox, Vector.new(-0.7, 1.5, -0.7));
Sandbox.SetCameraForward(sandbox, Vector.new(-0.4, 0, -1));
elseif (key == "f3_key") then
Sandbox.CreateNavigationMesh(
sandbox, "default", { MinimumRegionArea = 15 });
Sandbox.SetDebugNavigationMesh(sandbox, "default", true);
end
end
end
function Sandbox_Initialize(sandbox)
Core.CacheResource("models/nobiax_modular/modular_block.mesh");
SandboxUtilities_CreateLevel(sandbox);
local navMeshConfig = {
MinimumRegionArea = 250,
WalkableRadius = 0.4,
WalkableClimbHeight = 0.2,
WalkableSlopeAngle = 45 };
Sandbox.CreateNavigationMesh(sandbox, "default", navMeshConfig);
Sandbox.SetDebugNavigationMesh(sandbox, "default", true);
for i=1, 3 do
local agent = Sandbox.CreateAgent(sandbox, "IndirectSoldierAgent.lua");
table.insert(agents, agent);
local position = Sandbox.RandomPoint(sandbox, "default");
position.y = position.y + agent:GetHeight() / 2.0;
agent:SetPosition(position);
agent:SetTarget(agent:GetPosition());
end
end
function Sandbox_Update(sandbox, deltaTimeInMillis)
local deltaTimeInSeconds = deltaTimeInMillis / 1000;
DrawPaths();
end |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
]]
local mnist = require 'datasets.mnist'
local game = require 'dmlab.system.game'
local helpers = require 'common.helpers'
local psychlab_factory = require 'factories.psychlab.factory'
local psychlab_helpers = require 'factories.psychlab.helpers'
local image = require 'dmlab.system.image'
local point_and_click = require 'factories.psychlab.point_and_click'
local random = require 'common.random'
local tensor = require 'dmlab.system.tensor'
local set = require 'common.set'
local psychlab_staircase = require 'levels.contributed.psychlab.factories.staircase'
local log = require 'common.log'
--[[ Each trial consists of a study-what, a study-where and a test phase
separated by two brief delay intervals. The agent must remember what target was
displayed during the study-what period, see where it is located during the
study-where period, and then respond by looking to that location in the test
phase.
This task is based on:
Rao, S. Chenchal, Gregor Rainer, and Earl K. Miller.
"Integration of what and where in the primate prefrontal cortex."
Science 276.5313 (1997): 821-824.
]]
-- setup constant parameters of the task
local TIME_TO_FIXATE_CROSS = 1 -- in frames
local FAST_INTER_TRIAL_INTERVAL = 1 -- in frames
local SCREEN_SIZE = {width = 256, height = 256}
local BG_COLOR = {0, 0, 0}
local EPISODE_LENGTH_SECONDS = 180
local TRIALS_PER_EPISODE_CAP = math.huge
local TARGET_SIZE = 0.25 -- fraction of screen to fill for study what target
local SEARCH_ARRAY_SIZE = 0.95 -- fraction of screen to fill for where array
local STUDY_WHAT_TIME = 90 -- in frames
local STUDY_WHERE_TIME = 90 -- in frames
local CONSTANT_IMAGE_PER_CATEGORY = false
local CATEGORIES_10 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
local SEQUENCE = {
{categories = CATEGORIES_10, delayTimes = {8}},
{categories = CATEGORIES_10, delayTimes = {16}},
{categories = CATEGORIES_10, delayTimes = {32}},
{categories = CATEGORIES_10, delayTimes = {64}},
{categories = CATEGORIES_10, delayTimes = {128}},
{categories = CATEGORIES_10, delayTimes = {256}}
}
local ADVANCE_TRIAL_REWARD = 0
local CORRECT_REWARD_SEQUENCE = 1
local INCORRECT_REWARD = 0
local FIXATION_SIZE = 0.1
local FIXATION_COLOR = {255, 0, 0} -- RGB
local CENTER = {0.5, 0.5}
local BUTTON_SIZE = 0.1
-- If REQUIRE_AT_CENTER_PRERESPONSE set to true, then require agent to look to
-- a circle in the center of the screen just before the target. This prevents
-- immediately looking to the target location at start of the studyWhere phase.
local REQUIRE_AT_CENTER_PRERESPONSE = false
local PRERESPONSE_BUTTON_DIAMETER = 21
local PRERESPONSE_BUTTON_COLOR = {255, 255, 255}
-- Staircase parameters
local FRACTION_TO_PROMOTE = 1.0
local FRACTION_TO_DEMOTE = 0.75
local PROBE_PROBABILITY = 0.5
local BUTTONS = {'north', 'south', 'east', 'west'}
local BUTTON_POSITIONS = {
north = psychlab_helpers.getUpperLeftFromCenter(
{CENTER[1], BUTTON_SIZE / 2}, BUTTON_SIZE),
south = psychlab_helpers.getUpperLeftFromCenter(
{CENTER[1], 1 - BUTTON_SIZE / 2}, BUTTON_SIZE),
east = psychlab_helpers.getUpperLeftFromCenter(
{BUTTON_SIZE / 2, CENTER[2]}, BUTTON_SIZE),
west = psychlab_helpers.getUpperLeftFromCenter(
{1 - BUTTON_SIZE / 2, CENTER[2]}, BUTTON_SIZE)
}
local MAX_STEPS_OFF_SCREEN = 300 -- 5 seconds
local factory = {}
function factory.createLevelApi(kwargs)
kwargs.episodeLengthSeconds = kwargs.episodeLengthSeconds or
EPISODE_LENGTH_SECONDS
kwargs.timeToFixateCross = kwargs.timeToFixateCross or TIME_TO_FIXATE_CROSS
kwargs.fastInterTrialInterval = kwargs.fastInterTrialInterval or
FAST_INTER_TRIAL_INTERVAL
kwargs.screenSize = kwargs.screenSize or SCREEN_SIZE
kwargs.bgColor = kwargs.bgColor or BG_COLOR
kwargs.trialsPerEpisodeCap = kwargs.trialsPerEpisodeCap or
TRIALS_PER_EPISODE_CAP
kwargs.targetSize = kwargs.targetSize or TARGET_SIZE
kwargs.searchArraySize = kwargs.searchArraySize or SEARCH_ARRAY_SIZE
kwargs.studyWhatTime = kwargs.studyWhatTime or STUDY_WHAT_TIME
kwargs.studyWhereTime = kwargs.studyWhereTime or STUDY_WHERE_TIME
kwargs.correctRewardSequence = kwargs.correctRewardSequence or
CORRECT_REWARD_SEQUENCE
kwargs.sequence = kwargs.sequence or SEQUENCE
kwargs.advanceTrialReward = kwargs.advanceTrialReward or ADVANCE_TRIAL_REWARD
kwargs.incorrectReward = kwargs.incorrectReward or INCORRECT_REWARD
kwargs.fixationSize = kwargs.fixationSize or FIXATION_SIZE
kwargs.fixationColor = kwargs.fixationColor or FIXATION_COLOR
kwargs.center = kwargs.center or CENTER
kwargs.buttonSize = kwargs.buttonSize or BUTTON_SIZE
kwargs.buttons = kwargs.buttons or BUTTONS
kwargs.buttonPositions = kwargs.buttonPositions or BUTTON_POSITIONS
kwargs.requireAtCenterPreresponse = kwargs.requireAtCenterPreresponse or
REQUIRE_AT_CENTER_PRERESPONSE
kwargs.preresponseButtonDiameter = kwargs.preresponseButtonDiameter or
PRERESPONSE_BUTTON_DIAMETER
kwargs.preresponseButtonColor = kwargs.preresponseButtonColor or
PRERESPONSE_BUTTON_COLOR
kwargs.fractionToPromote = kwargs.fractionToPromote or FRACTION_TO_PROMOTE
kwargs.fractionToDemote = kwargs.fractionToDemote or FRACTION_TO_DEMOTE
kwargs.probeProbability = kwargs.probeProbability or PROBE_PROBABILITY
kwargs.fixedTestLength = kwargs.fixedTestLength or false
kwargs.initialDifficultyLevel = kwargs.initialDifficultyLevel or 1
kwargs.maxStepsOffScreen = kwargs.maxStepsOffScreen or MAX_STEPS_OFF_SCREEN
kwargs.constantImagePerCategory = kwargs.constantImagePerCategory or
CONSTANT_IMAGE_PER_CATEGORY
--[[ What then where psychlab environment class
]]
local env = {}
env.__index = env
setmetatable(env, {
__call = function (cls, ...)
local self = setmetatable({}, cls)
self:_init(...)
return self
end
})
-- init gets called at the start of each episode
function env:_init(pac, opts)
self.screenSize = opts.screenSize
log.info('opts passed to _init:\n' .. helpers.tostring(opts))
log.info('args passed to _init:\n' .. helpers.tostring(arg))
if self.dataset == nil then
self.dataset = mnist(opts)
end
self:setupImages()
self:wrapDataset()
-- handle to the point and click api
self.pac = pac
end
-- reset is called after init. It is called only once per episode.
-- Note: the episodeId passed to this function may not be correct if the job
-- has resumed from a checkpoint after preemption.
function env:reset(episodeId, seed, ...)
random:seed(seed)
self.pac:setBackgroundColor(kwargs.bgColor)
self.pac:clearWidgets()
psychlab_helpers.addFixation(self, kwargs.fixationSize)
self.reward = 0
self.currentTrial = {}
psychlab_helpers.setTrialsPerEpisodeCap(self, kwargs.trialsPerEpisodeCap)
-- initialize the adaptive staircase procedure
self.staircase = psychlab_staircase.createStaircase1D{
sequence = kwargs.sequence,
correctRewardSequence = kwargs.correctRewardSequence,
fractionToPromote = kwargs.fractionToPromote,
fractionToDemote = kwargs.fractionToDemote,
probeProbability = kwargs.probeProbability,
fixedTestLength = kwargs.fixedTestLength,
initialDifficultyLevel = kwargs.initialDifficultyLevel,
}
-- blockId groups together all rows written during the same episode
self.blockId = random:uniformInt(1, 2 ^ 32)
self.trialId = 1
end
function env:drawCircle(absSize, ballColor)
local radius = math.floor(absSize / 2)
local radiusSquared = radius ^ 2
local ballTensor = tensor.ByteTensor(absSize,
absSize, 3):fill(kwargs.bgColor)
local ballColor = tensor.ByteTensor(ballColor)
for x = -radius, radius do
for y = -radius, radius do
if x * x + y * y < radiusSquared then
ballTensor(y + radius + 1, x + radius + 1):copy(ballColor)
end
end
end
return ballTensor
end
function env:setupImages()
self.images = {}
self.images.fixation = psychlab_helpers.getFixationImage(self.screenSize,
kwargs.bgColor, kwargs.fixationColor, kwargs.fixationSize)
local h = kwargs.buttonSize * self.screenSize.height
local w = kwargs.buttonSize * self.screenSize.width
self.images.greenImage = tensor.ByteTensor(h, w, 3)
self.images.greenImage:select(3, 1):fill(100)
self.images.greenImage:select(3, 2):fill(255)
self.images.greenImage:select(3, 3):fill(100)
self.images.redImage = tensor.ByteTensor(h, w, 3)
self.images.redImage:select(3, 1):fill(255)
self.images.redImage:select(3, 2):fill(100)
self.images.redImage:select(3, 3):fill(100)
self.images.whiteImage = tensor.ByteTensor(h, w, 3):fill(255)
self.images.blackImage = tensor.ByteTensor(h, w, 3)
local whatPixels = psychlab_helpers.getSizeInPixels(self.screenSize,
kwargs.targetSize)
self.whatTensor = tensor.ByteTensor(whatPixels.height,
whatPixels.width,
3)
local wherePixels = psychlab_helpers.getSizeInPixels(self.screenSize,
kwargs.searchArraySize)
self.whereTensor = tensor.ByteTensor(wherePixels.height,
wherePixels.width,
3)
self.images.preresponseButton = self:drawCircle(
kwargs.preresponseButtonDiameter,
kwargs.preresponseButtonColor
)
end
function env:getImageOfCategory(category)
local imageId = random:uniformInt(1, self.dataset:getSize())
local label = self.dataset:getLabel(imageId)
local safeLoopCounter = 1
while label ~= category do
imageId = random:uniformInt(1, self.dataset:getSize())
label = self.dataset:getLabel(imageId)
safeLoopCounter = safeLoopCounter + 1
if safeLoopCounter == 1000 then
error("Raise error to avoid infinite loop.")
end
end
return imageId, self.dataset:getImage(imageId):clone()
end
function env:getConstantImageOfCategory(category)
local imageId = kwargs.constantImagePerCategory[category + 1]
local label = self.dataset:getLabel(imageId)
return imageId, self.dataset:getImage(imageId):clone()
end
function env:getImage(category)
local id, img
if kwargs.constantImagePerCategory then
id, img = self:getConstantImageOfCategory(category)
else
id, img = self:getImageOfCategory(category)
end
return id, img
end
function env:wrapDataset()
self.wrappedDataset = {}
function self.wrappedDataset.getNextTarget(self, categories)
local targetCategory = psychlab_helpers.randomFrom(
set.toList(categories))
local targetId, targetImg = self:getImage(targetCategory)
return targetCategory, targetId, targetImg
end
function self.wrappedDataset.getLocations(self, targetCategory, categories)
local correctLocation = psychlab_helpers.randomFrom(kwargs.buttons)
local mapObjects = {}
local categoriesAlreadyPicked = {}
for _, loc in ipairs(kwargs.buttons) do
local objectData = {}
if loc == correctLocation then
-- add correct object data to map
objectData.category = targetCategory
else
-- add incorrect object data to map
-- sample categories without replacement
local availableCategories = set.difference(
categories,
set.Set(categoriesAlreadyPicked)
)
availableCategories[targetCategory] = nil
objectData.category = psychlab_helpers.randomFrom(
set.toList(availableCategories))
table.insert(categoriesAlreadyPicked, objectData.category)
end
objectData.id, objectData.img = self:getImage(objectData.category)
table.insert(mapObjects, objectData)
end
return mapObjects, correctLocation
end
end
function env:finishTrial(delay)
self.currentTrial.blockId = self.blockId
self.currentTrial.reactionTime =
game:episodeTimeSeconds() - self._currentTrialStartTime
self.currentTrial.responseTime =
game:episodeTimeSeconds() - self._responseStartTime
self.staircase:step(self.currentTrial.correct == 1)
self.currentTrial.stepCount = self.pac:elapsedSteps()
self.currentTrial.mapObjects = nil -- avoid logging images
psychlab_helpers.publishTrialData(self.currentTrial, kwargs.schema)
psychlab_helpers.finishTrialCommon(self, delay, kwargs.fixationSize)
end
function env:fixationCallback(name, mousePos, hoverTime, userData)
if hoverTime == kwargs.timeToFixateCross then
self.pac:addReward(kwargs.advanceTrialReward)
self.pac:removeWidget('fixation')
self.pac:removeWidget('center_of_fixation')
-- Fixation initiates the next trial
self._rewardToDeliver = 0
self.currentTrial.reward = 0
self.currentTrial.trialId = self.trialId
self.trialId = self.trialId + 1
-- Measure reaction time from trial initiation (in microseconds)
self._currentTrialStartTime = game:episodeTimeSeconds()
self.pac:resetSteps()
-- go to the study phase
self:studyWhatPhase()
end
end
function env:onHoverEnd(name, mousePos, hoverTime, userData)
self.currentTrial.reward = self._rewardToDeliver
self.pac:addReward(self.currentTrial.reward)
self:finishTrial(kwargs.fastInterTrialInterval)
end
function env:correctResponseCallback(name, mousePos, hoverTime, userData)
self.currentTrial.response = name
self.currentTrial.correct = 1
self.pac:updateWidget(name, self.images.greenImage)
self._rewardToDeliver = self.staircase:correctReward()
end
function env:incorrectResponseCallback(name, mousePos, hoverTime, userData)
self.currentTrial.response = name
self.currentTrial.correct = 0
self.pac:updateWidget(name, self.images.redImage)
self._rewardToDeliver = kwargs.incorrectReward
end
function env:renderArray(mapObjects)
local h = kwargs.searchArraySize * self.screenSize.height
local w = kwargs.searchArraySize * self.screenSize.width
-- Assume h and w are the same
local scaledObjSize = kwargs.targetSize * h
local canvas = tensor.ByteTensor(h, w, 3):fill(kwargs.bgColor)
local upperLefts = {}
for i, direction in ipairs(kwargs.buttons) do
if direction == 'north' then
upperLefts[direction] = {1,
(w / 2) - (scaledObjSize / 2) + 1}
elseif direction == 'south' then
upperLefts[direction] = {h - scaledObjSize + 1,
(w / 2) - (scaledObjSize / 2) + 1}
elseif direction == 'east' then
upperLefts[direction] = {(h / 2) - (scaledObjSize / 2) + 1,
1}
elseif direction == 'west' then
upperLefts[direction] = {(h / 2) - (scaledObjSize / 2) + 1,
w - scaledObjSize + 1}
end
end
for i, direction in ipairs(kwargs.buttons) do
local upperLeftCoords = upperLefts[direction]
local dest = canvas:narrow(1, upperLeftCoords[1], scaledObjSize):
narrow(2, upperLeftCoords[2], scaledObjSize)
local scaledObj = psychlab_helpers.scaleImage(mapObjects[i].img,
scaledObjSize,
scaledObjSize)
dest:copy(scaledObj)
end
return canvas
end
-- Display the target object for kwargs.studyWhatTime frames
function env:studyWhatPhase()
local trialData = self.staircase:parameter()
assert(#trialData.categories >= 4, "Must have at least 4 categories.")
self._categoriesThisTrial = set.Set(trialData.categories)
self.currentTrial.delayWhatTime = psychlab_helpers.randomFrom(
trialData.delayTimes)
self.currentTrial.delayWhereTime = psychlab_helpers.randomFrom(
trialData.delayTimes)
self.currentTrial.difficultyLevel = self.staircase:getDifficultyLevel()
local targetCategory, targetId, targetImg =
self.wrappedDataset.getNextTarget(self, self._categoriesThisTrial)
self.currentTrial.targetCategory = targetCategory
self.currentTrial.targetId = targetId
-- self.target gets used by psychlab_helpers.addTargetImage
-- TODO(jzl): refactor this horrible global state in the helpers
self.target = self.whatTensor
psychlab_helpers.addTargetImage(
self,
psychlab_helpers.scaleImageToScreenFraction(
targetImg,
{height = kwargs.targetSize,
width = kwargs.targetSize},
self.screenSize
),
kwargs.targetSize)
self.pac:addTimer{
name = 'study_what_timer',
timeout = kwargs.studyWhatTime,
callback = function(...) return self.delayWhatPhase(self) end
}
end
-- Remove the study what image and display a blank screen (background color)
-- for some number of frames.
function env:delayWhatPhase()
self.pac:removeWidget('target')
self.pac:addTimer{
name = 'delay_what_timer',
timeout = self.currentTrial.delayWhatTime,
callback = function(...) return self.studyWherePhase(self) end
}
end
-- Display the search array for kwargs.studyWhereTime frames
function env:studyWherePhase()
-- mapObjects is a table indexed by location. Each location maps to a table
-- containing the data (id, category) for the object at that location.
local mapObjects, correctLocation = self.wrappedDataset.getLocations(self,
self.currentTrial.targetCategory, self._categoriesThisTrial)
self.currentTrial.mapObjects = mapObjects
self.currentTrial.correctLocation = correctLocation
-- self.target gets used by psychlab_helpers.addTargetImage
-- TODO(jzl): refactor this horrible global state in the helpers
self.target = self.whereTensor
psychlab_helpers.addTargetImage(
self,
self:renderArray(self.currentTrial.mapObjects),
kwargs.searchArraySize)
self.pac:addTimer{
name = 'study_where_timer',
timeout = kwargs.studyWhereTime,
callback = function(...) return self.delayWherePhase(self) end
}
end
-- Remove the study where image and display a blank screen (background color)
-- for some number of frames.
function env:delayWherePhase()
self.pac:removeWidget('target')
self.pac:addTimer{
name = 'delay_where_timer',
timeout = self.currentTrial.delayWhereTime,
callback = function(...) return self.preresponsePhase(self) end
}
end
function env:preresponsePhase()
if kwargs.requireAtCenterPreresponse then
self.pac:addWidget{
name = 'preresponse_button',
image = self.images.preresponseButton,
posAbs = psychlab_helpers.getUpperLeftFromCenter(
{self.screenSize.width / 2, self.screenSize.height / 2},
kwargs.preresponseButtonDiameter
),
sizeAbs = {kwargs.preresponseButtonDiameter,
kwargs.preresponseButtonDiameter},
mouseHoverCallback = function(...) return self.testPhase(self) end,
}
else
self:testPhase()
end
end
-- Display the test array and wait for the subject to respond
function env:testPhase()
if kwargs.requireAtCenterPreresponse then
self.pac:removeWidget('preresponse_button')
end
self:addResponseButtons(self.currentTrial.correctLocation)
-- Measure time till response in microseconds
self._responseStartTime = game:episodeTimeSeconds()
self.currentTrial.responseSteps = 0
end
function env:addResponseButtons(correctLocation)
for _, button in ipairs(kwargs.buttons) do
local callback
if button == correctLocation then
callback = self.correctResponseCallback
else
callback = self.incorrectResponseCallback
end
self.pac:addWidget{
name = button,
image = self.images.whiteImage,
pos = kwargs.buttonPositions[button],
size = {kwargs.buttonSize, kwargs.buttonSize},
mouseHoverCallback = callback,
mouseHoverEndCallback = self.onHoverEnd,
}
end
end
-- Remove the test array
function env:removeArray()
-- remove the response buttons
self.pac:removeWidget('north')
self.pac:removeWidget('south')
self.pac:removeWidget('east')
self.pac:removeWidget('west')
end
-- Increment counter to allow measurement of reaction times in steps
-- This function is automatically called at each tick.
function env:step(lookingAtScreen)
if self.currentTrial.responseSteps ~= nil then
self.currentTrial.responseSteps = self.currentTrial.responseSteps + 1
end
end
return psychlab_factory.createLevelApi{
env = point_and_click,
envOpts = {environment = env, screenSize = kwargs.screenSize,
maxStepsOffScreen = kwargs.maxStepsOffScreen},
episodeLengthSeconds = kwargs.episodeLengthSeconds
}
end
return factory
|
local _={}
_[38]={x=29,id=2,y=13,arrangement=0,type=1}
_[37]={x=1,id=1,y=14,arrangement=0,type=4}
_[36]={x=3,id=0,y=3,arrangement=0,type=1}
_[35]={y=2,x=29,id=0}
_[34]={y=3,x=16,dest=23,id=3}
_[33]={y=3,x=16,dest=23,id=2}
_[32]={y=3,x=16,dest=23,id=1}
_[31]={y=3,x=16,dest=23,id=0}
_[30]={y=11,x=5,target=10,id=3}
_[29]={y=11,x=5,target=10,id=2}
_[28]={y=11,x=5,target=10,id=1}
_[27]={y=11,x=5,target=10,id=0}
_[26]={x=22,w=10,y=7,h=1,style=false,id=15}
_[25]={x=25,w=1,y=3,h=9,style=false,id=14}
_[24]={x=10,w=1,y=12,h=1,style=false,id=13}
_[23]={x=6,w=1,y=11,h=2,style=false,id=12}
_[22]={x=4,w=3,y=10,h=1,style=false,id=11}
_[21]={x=19,w=1,y=4,h=2,style=true,id=10}
_[20]={x=15,w=4,y=1,h=1,style=false,id=9}
_[19]={x=19,w=1,y=1,h=3,style=false,id=8}
_[18]={x=16,w=2,y=12,h=1,style=false,id=7}
_[17]={x=15,w=4,y=9,h=1,style=false,id=6}
_[16]={x=15,w=5,y=6,h=1,style=false,id=5}
_[15]={x=14,w=1,y=1,h=6,style=false,id=4}
_[14]={x=11,w=1,y=2,h=4,style=false,id=3}
_[13]={x=8,w=1,y=3,h=2,style=false,id=2}
_[12]={x=5,w=1,y=2,h=4,style=false,id=1}
_[11]={x=2,w=1,y=1,h=6,style=false,id=0}
_[10]={y=14,x=2,id=3}
_[9]={y=7,x=3,id=2}
_[8]={y=11,x=12,id=1}
_[7]={y=9,x=28,id=0}
_[6]={_[36],_[37],_[38]}
_[5]={_[35]}
_[4]={_[31],_[32],_[33],_[34]}
_[3]={_[27],_[28],_[29],_[30]}
_[2]={_[11],_[12],_[13],_[14],_[15],_[16],_[17],_[18],_[19],_[20],_[21],_[22],_[23],_[24],_[25],_[26]}
_[1]={_[7],_[8],_[9],_[10]}
return {spawners=_[1],walls=_[2],keys=_[3],exits=_[4],starts=_[5],treasures=_[6]} |
-- LuaJack example: oscillator.lua
--
-- Generates a pure sinusoid at a given frequency and sends it to
-- a playback port.
jack = require("luajack")
getopt = require("luajack.getopt")
fmt = string.format
my_name = arg[0]
USAGE =
"Usage: lua " .. my_name .. " [options]" ..
"\nGenerates a pure sinusoid and sends it to a playback port."..
"\nOptions:" ..
"\n -f, --frequency <hz> the frequency of the sinusoid (def: 440 hz)" ..
"\n -d, --duration <sec> duration of the sinusoid (def: 3 s)" ..
"\n -o, --output <portname> the playback port (def: system:playback_1)" ..
"\n -h, --help display this help message" ..
"\n -v, --version display version information and exit" ..
"\n\n"
function ShowVersion()
print(fmt("%s: %s, %s", my_name, jack._VERSION, jack._JACK_VERSION))
end
function ShowUsage(errmsg)
if errmsg then print(errmsg, "\n") end
print(USAGE)
if errmsg then os.exit() end
end
short_opts = "f:d:o:hv"
long_opts = {
frequency ='f',
duration = 'd',
output = 'o',
help = 'h',
version = 'v',
}
optarg, optind, opterr = getopt(arg, short_opts, long_opts)
if opterr then ShowUsage(opterr) end
if optarg.h then ShowUsage() os.exit(true) end
if optarg.v then ShowVersion() os.exit(true) end
local playback_port = optarg.o or "system:playback_1"
local f = optarg.f or 440 -- frequency (Hz)
local dur = optarg.d or 3 -- duration (s)
-- open the 'oscillator' client:
c = jack.client_open("oscillator")
-- register the output port:
out = jack.output_audio_port(c, "out")
jack.process_load(c, [[
local pi = math.pi
local sin = math.sin
local c, out, f = table.unpack(arg)
local y = {} -- output samples
local n = 0 -- frame number
-- get the sample rate and compute the radian frequency:
fs = jack.sample_rate(c)
wT = 2*pi*f/fs -- radian frequency (rad/sample) = 2*pi*f/fs
print("sample rate = " .. fs .. " hz")
print("frequency = " .. f .. " hz")
print("radian frequency = " .. wT .. " rad/sample")
function process(nframes)
-- get the port buffer
jack.get_buffer(out)
-- compute the samples
for i=1,nframes do
y[i] = .5*sin(wT*n)
n = n+1
end
-- write the samples to the output port
jack.write(out, table.unpack(y))
end
jack.process_callback(c, process);
]], c, out, f)
-- register other callbacks:
jack.shutdown_callback(c, function(_, code, reason)
error(reason .." (".. code ..")")
end)
jack.xrun_callback(c, function() print("xrun") end)
-- activate the client:
jack.activate(c)
-- connect the output port to the playback port:
jack.port_connect(out, playback_port)
-- sleep while waiting for jack to call back:
jack.sleep(dur)
-- disconnect the port (superfluous because client:close() does it)
jack.port_disconnect(out)
-- close the client (superfluous because it is automatically closed at exit)
jack.client_close(c)
print("bye!")
|
function func1()
func2()
end
function func2()
func3()
end
function func3()
error("some error")
end
func1()
|
local A, GreyHandling = ...
--[[
Taken here : https://bitbucket.org/Kjasi/libkjasi/src/48396478046986fa634f35b6ab746cc943ff0042/Kjasi.lua
Get the ID Number and Type from a link.
The returned Type variable lets you identify the type of link. If an ItemID is passed, then the type is "id".
If link is an item, and isFull is set, then the full ID string is returned.
if link is a currency, and getSlot is set, returns the index in the player's currency list, with a type of "currencyIndex"
If link is a quest, returns the Quest ID number, and the Quest's Level. Raid, Group and Dungeon quests are also specified by the Quest's level.
Otherwise, it returns just the ID number.
]]
function GreyHandling.functions.getIDNumber(link, isFull, getSlot)
assert(link, "LibKjasi:getIDNumber: bad argument #1: Expected a string, got nil.")
assert((type(link)=="string")or(type(link)=="number"),"LibKjasi:getIDNumber: bad argument #1: Expected a string or number, got "..type(link)..".")
if (type(link)=="string") then
assert(strfind(link,":") ~= nil, "LibKjasi:getIDNumber: bad argument #1: Supplied string is not a valid link.")
else
return tonumber(link), "id"
end
local justID = string.gsub(link,".-\124H([^\124]*)\124h.-\124h", "%1")
local itype, itemid, enchant, gem1, gem2, gem3, gem4, suffixID, uniqueID, level, upgradeId, instanceDifficultyID, numBonusIDs, bonusID1, bonusID2 = strsplit(":",justID)
if (itype == "item") and (isFull) then
return string.gsub(justID, "\124", "\124\124"), tostring(itype)
elseif (itype == "currency") and (getSlot) then
for i=1,GetCurrencyListSize() do
local name, ih = GetCurrencyListInfo(i)
if (ih == false) then
if (name == lib:getNamefromLink(link)) then
return tonumber(i), "currencyIndex"
end
end
end
elseif (itype == "quest") then
local questlevel = enchant
return tonumber(itemid), tostring(itype), tonumber(string.match(questlevel,"%d+")), tostring(questlevel)
-- questlevel is returned as both a string and a number, because raid, group and dungeon quests add a character to the end of the quest's level
else
return tonumber(itemid), tostring(itype)
end
end
|
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
local ToggleFrame = ToggleFrame
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: WorldMapFrame
local displayString = ""
local inRestrictedArea = false
local function Update(self, elapsed)
if inRestrictedArea or not E.MapInfo.coordsWatching then return end
self.timeSinceUpdate = (self.timeSinceUpdate or 0) + elapsed
if self.timeSinceUpdate > 0.1 then
self.text:SetFormattedText(displayString, E.MapInfo.xText or 0, E.MapInfo.yText or 0)
self.timeSinceUpdate = 0
end
end
local function OnEvent(self)
E:MapInfo_Update()
if E.MapInfo.x and E.MapInfo.y then
inRestrictedArea = false
self.text:SetFormattedText(displayString, E.MapInfo.xText or 0, E.MapInfo.yText or 0)
else
inRestrictedArea = true
self.text:SetText("N/A")
end
end
local function Click()
ToggleFrame(WorldMapFrame)
end
local function ValueColorUpdate(hex)
displayString = join("", hex, "%.2f|r", " , ", hex, "%.2f|r")
end
E.valueColorUpdateFuncs[ValueColorUpdate] = true
DT:RegisterDatatext('Coords', {"ZONE_CHANGED","ZONE_CHANGED_INDOORS","ZONE_CHANGED_NEW_AREA"}, OnEvent, Update, Click, nil, nil, L["Coords"])
|
require('plugins.godot.variables')
|
---------------------------------------------------------------------------------------------------
-- User story: Smoke
-- Use case: GetPolicyConfigurationData
-- Item: Happy path
--
-- Requirement summary:
-- [GetPolicyConfigurationData] SUCCESS: getting SUCCESS:SDL.GetPolicyConfigurationData()
--
-- Description:
-- Processing GetPolicyConfigurationData request from HMI
-- Pre-conditions:
-- a. HMI and SDL are started
-- Steps:
-- HMI requests GetPolicyConfigurationData with valid parameters
-- Expected:
-- SDL responds with value for requested parameter
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local runner = require('user_modules/script_runner')
local common = require('test_scripts/Smoke/commonSmoke')
--[[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false
--[[ Local Functions ]]
local function GetPolicyConfigurationData()
local hmi = common.getHMIConnection()
local requestId = hmi:SendRequest("SDL.GetPolicyConfigurationData",
{ policyType = "module_config", property = "endpoints" })
hmi:ExpectResponse(requestId, { result = { code = 0 } })
:ValidIf(function(_, data)
local expectedEndpoints = common.sdl.getPreloadedPT().policy_table.module_config.endpoints
local actualEndpoints = common.json.decode(data.result.value[1])
if true ~= common.isTableEqual(actualEndpoints, expectedEndpoints) then
return false, "GetPolicyConfigurationData contains unexpected parameters.\n" ..
"Expected table: " .. common.tableToString(expectedEndpoints) .. "\n" ..
"Actual table: " .. common.tableToString(actualEndpoints) .. "\n"
end
return true
end)
end
--[[ Scenario ]]
runner.Title("Preconditions")
runner.Step("Clean environment", common.preconditions)
runner.Step("Update Preloaded PT", common.updatePreloadedPT)
runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
runner.Title("Test")
runner.Step("GetPolicyConfigurationData from HMI", GetPolicyConfigurationData)
runner.Title("Postconditions")
runner.Step("Stop SDL", common.postconditions)
|
debugging = nil
local Interface = require 'NJLI.Interface'
local BitmapFont = require 'NJLI.BitmapFont'
local YappyGame = require "YAPPYBIRDS.YappyGame"
RanchersFont = nil
Geometry2D = nil
OrthographicCameraNode = nil
PerspectiveCameraNode = nil
MyGame = nil
gInterface = nil
local Create = function()
if nil == OrthographicCameraNode then
OrthographicCameraNode = njli.Node.create()
OrthographicCameraNode:setName("orthoCamera")
local camera = njli.Camera.create()
camera:enableOrthographic()
camera:setRenderCategory(RenderCategories.orthographic)
camera:setName("orthoCamera")
OrthographicCameraNode:setCamera(camera)
njli.World.getInstance():enableDebugDraw(OrthographicCameraNode:getCamera())
end
if nil == PerspectiveCameraNode then
PerspectiveCameraNode = njli.Node.create()
PerspectiveCameraNode:setName("perspectiveCamera")
local camera = njli.Camera.create()
camera:enableOrthographic(false)
camera:setRenderCategory(RenderCategories.perspective)
camera:setName("perspectiveCamera")
PerspectiveCameraNode:setCamera(camera)
end
if nil == Geometry2D then
Geometry2D = {}
for i=1,4 do
Geometry2D[i] = njli.Sprite2D.create()
Geometry2D[i]:setName("YappyBird Geometry " .. i)
local material = njli.Material.create()
material:setName("YappyBird Material " .. i)
local shader = njli.ShaderProgram.create()
shader:setName("YappyBird Shader " .. i)
njli.World.getInstance():getWorldResourceLoader():load("shaders/objectShader.vsh", "shaders/objectShader.fsh", shader)
Geometry2D[i]:setMaterial(material)
Geometry2D[i]:setShaderProgram(shader)
Geometry2D[i]:show(OrthographicCameraNode:getCamera())
Geometry2D[i]:hide(PerspectiveCameraNode:getCamera())
end
end
if nil == RanchersFont then
RanchersFont = BitmapFont({file='Ranchers_GlyphDesigner.fnt'})
RanchersFont:load()
RanchersFont:show(OrthographicCameraNode:getCamera())
RanchersFont:hide(PerspectiveCameraNode:getCamera())
end
if nil == gInterface then
gInterface = Interface()
gInterface:getDeviceEntity():create()
end
if nil == MyGame then
MyGame = YappyGame(Worlds.yappygame)
MyGame:startStateMachine()
end
end
local Destroy = function()
if MyGame then
MyGame:stopStateMachine()
MyGame = nil
end
if gInterface then
gInterface:getDeviceEntity():destroy()
gInterface = nil
end
if RanchersFont then
RanchersFont:unLoad()
RanchersFont = nil
end
if Geometry2D[1] then
local material = Geometry2D[1]:getMaterial()
njli.Material.destroy(material)
local shader = Geometry2D[1]:getShaderProgram()
njli.ShaderProgram.destroy(shader)
njli.Sprite2D.destroy(Geometry2D[1])
-- Geometry2D = nil
end
if PerspectiveCameraNode then
local camera = PerspectiveCameraNode:getCamera()
njli.Camera.destroy(camera)
njli.Node.destroy(PerspectiveCameraNode)
PerspectiveCameraNode = nil
end
if OrthographicCameraNode then
local camera = OrthographicCameraNode:getCamera()
njli.Camera.destroy(camera)
njli.Node.destroy(OrthographicCameraNode)
OrthographicCameraNode = nil
end
end
--function(event) pcall(onUpdate, event) end
local Update = function(timeStep)
if debugging == nil then
debugging = false
return false
end
if not debugging then
--require("mobdebug").start()
--require("mobdebug").coro()
debugging = true
end
-- local pos = bullet.btVector3(100, 100, -1)
-- local color = bullet.btVector4(0.202, 0.643, 0.000, 1)
-- njli.World.getInstance():getDebugDrawer():point(pos, color, 100)--, 100000, 10)
if gInterface then
gInterface:getDeviceEntity():update(timeStep)
end
--njli.World.getInstance():setBackgroundColor(0.453, 0.108, 0.000)
end
local Render = function()
if gInterface then
gInterface:getDeviceEntity():render()
end
end
local Resize = function(width, height, orientation)
if gInterface then
gInterface:getDeviceEntity():resize(width, height, orientation)
end
end
local TouchesDown = function(touches)
if gInterface then
gInterface:getDeviceEntity():touchesDown(touches)
end
end
local TouchesUp = function(touches)
if gInterface then
gInterface:getDeviceEntity():touchesUp(touches)
end
end
local TouchesMove = function(touches)
if gInterface then
gInterface:getDeviceEntity():touchesMove(touches)
end
end
local TouchesCancelled = function(touches)
if gInterface then
gInterface:getDeviceEntity():touchesCancelled(touches)
end
end
local TouchDown = function(touch)
if gInterface then
gInterface:getDeviceEntity():touchDown(touch)
end
end
local TouchUp = function(touch)
if gInterface then
gInterface:getDeviceEntity():touchUp(touch)
end
end
local TouchMove = function(touch)
if gInterface then
gInterface:getDeviceEntity():touchMove(touch)
end
end
local TouchCancelled = function(touches)
if gInterface then
gInterface:getDeviceEntity():touchCancelled(touches)
end
end
local MouseDown = function(mouse)
if gInterface then
gInterface:getDeviceEntity():mouseDown(mouse)
end
end
local MouseUp = function(mouse)
if gInterface then
gInterface:getDeviceEntity():mouseUp(mouse)
end
end
local MouseMove = function(mouse)
if gInterface then
gInterface:getDeviceEntity():mouseMove(mouse)
end
end
local WorldEnterState = function()
if gInterface then
gInterface:getStateMachine():_worldEnterState()
end
end
local WorldUpdateState = function(timeStep)
if gInterface then
gInterface:getStateMachine():_worldUpdateState(timeStep)
end
end
local WorldExitState = function()
if gInterface then
gInterface:getStateMachine():_worldExitState()
end
end
local WorldOnMessage = function(message)
if gInterface then
gInterface:getStateMachine():_worldOnMessage(message)
end
end
local WorldKeyboardShow = function()
if gInterface then
gInterface:getStateMachine():_worldKeyboardShow()
end
end
local WorldKeyboardCancel = function()
if gInterface then
gInterface:getStateMachine():_worldKeyboardCancel()
end
end
local WorldKeyboardReturn = function(text)
if gInterface then
gInterface:getStateMachine():_worldKeyboardReturn(text)
end
end
local WorldReceivedMemoryWarning = function()
if gInterface then
gInterface:getStateMachine():_worldReceivedMemoryWarning()
end
end
local WorldGamePause = function()
if gInterface then
gInterface:getStateMachine():_worldGamePause()
end
end
local WorldGameUnPause = function()
if gInterface then
gInterface:getStateMachine():_worldGameUnPause()
end
end
local WorldRenderHUD = function()
if gInterface then
gInterface:getStateMachine():_worldRenderHUD()
end
end
local WorldTouchesDown = function(touches)
if gInterface then
gInterface:getStateMachine():_worldTouchesDown(touches)
end
end
local WorldTouchesUp = function(touches)
if gInterface then
gInterface:getStateMachine():_worldTouchesUp(touches)
end
end
local WorldTouchesMove = function(touches)
if gInterface then
gInterface:getStateMachine():_worldTouchesMove(touches)
end
end
local WorldTouchesCancelled = function(touches)
if gInterface then
gInterface:getStateMachine():_worldTouchesCancelled(touches)
end
end
local WorldTouchDown = function(touch)
if gInterface then
gInterface:getStateMachine():_worldTouchDown(touch)
end
end
local WorldTouchUp = function(touch)
if gInterface then
gInterface:getStateMachine():_worldTouchUp(touch)
end
end
local WorldTouchMove = function(touch)
if gInterface then
gInterface:getStateMachine():_worldTouchMove(touch)
end
end
local WorldTouchCancelled = function(touch)
if gInterface then
gInterface:getStateMachine():_worldTouchCancelled(touch)
end
end
local WorldMouseDown = function(mouse)
if gInterface then
gInterface:getStateMachine():_worldMouseDown(mouse)
end
end
local WorldMouseUp = function(mouse)
if gInterface then
gInterface:getStateMachine():_worldMouseUp(mouse)
end
end
local WorldMouseMove = function(mouse)
if gInterface then
gInterface:getStateMachine():_worldMouseMove(mouse)
end
end
local WorldWillResignActive = function()
if gInterface then
gInterface:getStateMachine():_worldWillResignActive()
end
end
local WorldDidBecomeActive = function()
if gInterface then
gInterface:getStateMachine():_worldDidBecomeActive()
end
end
local WorldDidEnterBackground = function()
if gInterface then
gInterface:getStateMachine():_worldDidEnterBackground()
end
end
local WorldWillEnterForeground = function()
if gInterface then
gInterface:getStateMachine():_worldWillEnterForeground()
end
end
local WorldWillTerminate = function()
if gInterface then
gInterface:getStateMachine():_worldWillTerminate()
end
end
local WorldInterrupt = function()
if gInterface then
gInterface:getStateMachine():_worldInterrupt()
end
end
local WorldResumeInterrupt = function()
if gInterface then
gInterface:getStateMachine():_worldResumeInterrupt()
end
end
local SceneEnterState = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneEnterState(scene)
end
end
local SceneUpdateState = function(scene, timeStep)
if gInterface then
gInterface:getStateMachine():_sceneUpdateState(scene, timeStep)
end
end
local SceneExitState = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneExitState(scene)
end
end
local SceneOnMessage = function(scene, message)
if gInterface then
gInterface:getStateMachine():_sceneOnMessage(scene, message)
end
end
local SceneKeyboardShow = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneKeyboardShow(scene)
end
end
local SceneKeyboardCancel = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneKeyboardCancel(scene)
end
end
local SceneKeyboardReturn = function(scene, text)
if gInterface then
gInterface:getStateMachine():_sceneKeyboardReturn(scene, text)
end
end
local SceneRenderHUD = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneRenderHUD(scene)
end
end
local SceneGamePause = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneGamePause(scene)
end
end
local SceneGameUnPause = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneGameUnPause(scene)
end
end
local SceneTouchesDown = function(scene, touches)
if gInterface then
gInterface:getStateMachine():_sceneTouchesDown(scene, touches)
end
end
local SceneTouchesUp = function(scene, touches)
if gInterface then
gInterface:getStateMachine():_sceneTouchesUp(scene, touches)
end
end
local SceneTouchesMove = function(scene, touches)
if gInterface then
gInterface:getStateMachine():_sceneTouchesMove(scene, touches)
end
end
local SceneTouchesCancelled = function(scene, touches)
if gInterface then
gInterface:getStateMachine():_sceneTouchesCancelled(scene, touches)
end
end
local SceneTouchDown = function(scene, touch)
if gInterface then
gInterface:getStateMachine():_sceneTouchDown(scene, touch)
end
end
local SceneTouchUp = function(scene, touch)
if gInterface then
gInterface:getStateMachine():_sceneTouchUp(scene, touch)
end
end
local SceneTouchMove = function(scene, touch)
if gInterface then
gInterface:getStateMachine():_sceneTouchMove(scene, touch)
end
end
local SceneTouchCancelled = function(scene, touch)
if gInterface then
gInterface:getStateMachine():_sceneTouchCancelled(scene, touch)
end
end
local SceneMouseDown = function(scene, mouse)
if gInterface then
gInterface:getStateMachine():_sceneMouseDown(scene, mouse)
end
end
local SceneMouseUp = function(scene, mouse)
if gInterface then
gInterface:getStateMachine():_sceneMouseUp(scene, mouse)
end
end
local SceneMouseMove = function(scene, mouse)
if gInterface then
gInterface:getStateMachine():_sceneMouseMove(scene, mouse)
end
end
local SceneReceivedMemoryWarning = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneReceivedMemoryWarning(scene)
end
end
local SceneWillResignActive = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneWillResignActive(scene)
end
end
local SceneDidBecomeActive = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneDidBecomeActive(scene)
end
end
local SceneDidEnterBackground = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneDidEnterBackground(scene)
end
end
local SceneWillEnterForeground = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneWillEnterForeground(scene)
end
end
local SceneWillTerminate = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneWillTerminate(scene)
end
end
local SceneInterrupt = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneInterrupt(scene)
end
end
local SceneResumeInterrupt = function(scene)
if gInterface then
gInterface:getStateMachine():_sceneResumeInterrupt(scene)
end
end
local NodeEnterState = function(node)
if gInterface then
gInterface:getStateMachine():_nodeEnterState(node)
end
end
local NodeUpdateState = function(node, timeStep)
if gInterface then
gInterface:getStateMachine():_nodeUpdateState(node, timeStep)
end
end
local NodeExitState = function(node)
if gInterface then
gInterface:getStateMachine():_nodeExitState(node)
end
end
local NodeOnMessage = function(node, message)
if gInterface then
gInterface:getStateMachine():_nodeOnMessage(node, message)
end
end
local NodeCollide = function(node, otherNode, collisionPoint)
if gInterface then
gInterface:getStateMachine():_nodeCollide(node, otherNode, collisionPoint)
end
end
local NodeNear = function(node, otherNode)
if gInterface then
gInterface:getStateMachine():_nodeNear(node, otherNode)
end
end
local NodeActionUpdate = function(action, timeStep)
if gInterface then
gInterface:getStateMachine():_nodeActionUpdate(action, timeStep)
end
end
local NodeActionComplete = function(action)
if gInterface then
gInterface:getStateMachine():_nodeActionComplete(action)
end
end
local NodeRayTouchesDown = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchesDown(rayContact)
end
end
local NodeRayTouchesUp = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchesUp(rayContact)
end
end
local NodeRayTouchesMove = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchesMove(rayContact)
end
end
local NodeRayTouchesCancelled = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchesCancelled(rayContact)
end
end
local NodeRayTouchesMissed = function(node)
if gInterface then
gInterface:getStateMachine():_rayTouchesMissed(node)
end
end
local NodeRayTouchDown = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchDown(rayContact)
end
end
local NodeRayTouchUp = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchUp(rayContact)
end
end
local NodeRayTouchMove = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchMove(rayContact)
end
end
local NodeRayTouchCancelled = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayTouchCancelled(rayContact)
end
end
local NodeRayMouseDown = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayMouseDown(rayContact)
end
end
local NodeRayMouseUp = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayMouseUp(rayContact)
end
end
local NodeRayMouseMove = function(rayContact)
if gInterface then
gInterface:getStateMachine():_rayMouseMove(rayContact)
end
end
local NodeRayTouchMissed = function(node)
if gInterface then
gInterface:getStateMachine():_rayTouchMissed(node)
end
end
local NodeRayMouseMissed = function(node)
if gInterface then
gInterface:getStateMachine():_rayMouseMissed(node)
end
end
local NodeKeyboardShow = function(node)
if gInterface then
gInterface:getStateMachine():_nodeKeyboardShow(node)
end
end
local NodeKeyboardCancel = function(node)
if gInterface then
gInterface:getStateMachine():_nodeKeyboardCancel(node)
end
end
local NodeKeyboardReturn = function(node)
if gInterface then
gInterface:getStateMachine():_nodeKeyboardReturn(node)
end
end
local NodeRenderHUD = function(node)
if gInterface then
gInterface:getStateMachine():_nodeRenderHUD(node)
end
end
local NodeGamePause = function(node)
if gInterface then
gInterface:getStateMachine():_nodeGamePause(node)
end
end
local NodeGameUnPause = function(node)
if gInterface then
gInterface:getStateMachine():_nodeGameUnPause(node)
end
end
local NodeTouchesDown = function(node, touches)
if gInterface then
gInterface:getStateMachine():_nodeTouchesDown(node, touches)
end
end
local NodeTouchesUp = function(node, touches)
if gInterface then
gInterface:getStateMachine():_nodeTouchesUp(node, touches)
end
end
local NodeTouchesMove = function(node, touches)
if gInterface then
gInterface:getStateMachine():_nodeTouchesMove(node, touches)
end
end
local NodeTouchesCancelled = function(node, touches)
if gInterface then
gInterface:getStateMachine():_nodeTouchesCancelled(node, touches)
end
end
local NodeTouchDown = function(node, touch)
if gInterface then
gInterface:getStateMachine():_nodeTouchDown(node, touch)
end
end
local NodeTouchUp = function(node, touch)
if gInterface then
gInterface:getStateMachine():_nodeTouchUp(node, touch)
end
end
local NodeTouchMove = function(node, touch)
if gInterface then
gInterface:getStateMachine():_nodeTouchMove(node, touch)
end
end
local NodeTouchCancelled = function(node, touches)
if gInterface then
gInterface:getStateMachine():_nodeTouchCancelled(node, touches)
end
end
local NodeMouseDown = function(node, mouse)
if gInterface then
gInterface:getStateMachine():_nodeMouseDown(node, mouse)
end
end
local NodeMouseUp = function(node, mouse)
if gInterface then
gInterface:getStateMachine():_nodeMouseUp(node, mouse)
end
end
local NodeMouseMove = function(node, mouse)
if gInterface then
gInterface:getStateMachine():_nodeMouseMove(node, mouse)
end
end
RegisterCreate("Create", function() pcall(Create) end)
RegisterDestroy("Destroy", function() pcall(Destroy) end )
RegisterUpdate("Update", function() pcall(Update) end )
RegisterRender("Render", function() pcall(Render) end )
RegisterResize("Resize", function(width, height, orientation) pcall(Resize, width, height, orientation) end )
RegisterTouchesDown("TouchesDown", function(touches) pcall(TouchesDown, touches) end )
RegisterTouchesUp("TouchesUp", function(touches) pcall(TouchesUp, touches) end )
RegisterTouchesMove("TouchesMove", function(touches) pcall(TouchesMove, touches) end )
RegisterTouchesCancelled("TouchesCancelled", function(touches) pcall(TouchesCancelled, touches) end )
RegisterTouchDown("TouchDown", function(touch) pcall(TouchDown, touch) end )
RegisterTouchUp("TouchUp", function(touch) pcall(TouchUp, touch) end )
RegisterTouchMove("TouchMove", function(touch) pcall(TouchMove, touch) end )
RegisterTouchCancelled("TouchCancelled", function(touch) pcall(TouchCancelled, touch) end )
RegisterMouseDown("MouseDown", function(mouse) pcall(MouseDown, mouse) end )
RegisterMouseUp("MouseUp", function(mouse) pcall(MouseUp, mouse) end )
RegisterMouseMove("MouseMove", function(mouse) pcall(MouseMove, mouse) end )
RegisterWorldEnterState("WorldEnterState", function() pcall(WorldEnterState) end )
RegisterWorldUpdateState("WorldUpdateState", function(timeStep) pcall(WorldUpdateState, timeStep) end )
RegisterWorldExitState("WorldExitState", function() pcall(WorldExitState) end )
RegisterWorldOnMessage("WorldOnMessage", function(message) pcall(WorldOnMessage, message) end )
RegisterWorldKeyboardShow("WorldKeyboardShow", function() pcall(WorldKeyboardShow) end )
RegisterWorldKeyboardCancel("WorldKeyboardCancel", function() pcall(WorldKeyboardCancel) end )
RegisterWorldKeyboardReturn("WorldKeyboardReturn", function() pcall(WorldKeyboardReturn) end )
RegisterWorldReceivedMemoryWarning("WorldReceivedMemoryWarning", function() pcall(WorldReceivedMemoryWarning) end )
RegisterWorldGamePause("WorldGamePause", function() pcall(WorldGamePause) end )
RegisterWorldGameUnPause("WorldGameUnPause", function() pcall(WorldGameUnPause) end )
RegisterWorldRenderHUD("WorldRenderHUD", function() pcall(WorldRenderHUD) end )
RegisterWorldTouchesDown("WorldTouchesDown", function(touches) pcall(WorldTouchesDown, touches) end )
RegisterWorldTouchesUp("WorldTouchesUp", function(touches) pcall(WorldTouchesUp, touches) end )
RegisterWorldTouchesMove("WorldTouchesMove", function(touches) pcall(WorldTouchesMove, touches) end )
RegisterWorldTouchesCancelled("WorldTouchesCancelled", function(touches) pcall(WorldTouchesCancelled, touches) end )
RegisterWorldTouchDown("WorldTouchDown", function(touch) pcall(WorldTouchDown, touch) end )
RegisterWorldTouchUp("WorldTouchUp", function(touch) pcall(WorldTouchUp, touch) end )
RegisterWorldTouchMove("WorldTouchMove", function(touch) pcall(WorldTouchMove, touch) end )
RegisterWorldTouchCancelled("WorldTouchCancelled", function(touch) pcall(WorldTouchCancelled, touch) end )
RegisterWorldMouseDown("WorldMouseDown", function(mouse) pcall(WorldMouseDown, mouse) end )
RegisterWorldMouseUp("WorldMouseUp", function(mouse) pcall(WorldMouseUp, mouse) end )
RegisterWorldMouseMove("WorldMouseMove", function(mouse) pcall(WorldMouseMove, mouse) end )
RegisterWorldWillResignActive("WorldWillResignActive", function() pcall(WorldWillResignActive) end )
RegisterWorldDidBecomeActive("WorldDidBecomeActive", function() pcall(WorldDidBecomeActive) end )
RegisterWorldDidEnterBackground("WorldDidEnterBackground", function() pcall(WorldDidEnterBackground) end )
RegisterWorldWillEnterForeground("WorldWillEnterForeground", function() pcall(WorldWillEnterForeground) end )
RegisterWorldWillTerminate("WorldWillTerminate", function() pcall(WorldWillTerminate) end )
RegisterWorldInterrupt("WorldInterrupt", function() pcall(WorldInterrupt) end )
RegisterWorldResumeInterrupt("WorldResumeInterrupt", function() pcall(WorldResumeInterrupt) end )
RegisterSceneEnterState("SceneEnterState", function(scene) pcall(SceneEnterState, scene) end )
RegisterSceneUpdateState("SceneUpdateState", function(scene, timeStep) pcall(SceneUpdateState, scene, timeStep) end )
RegisterSceneExitState("SceneExitState", function(scene) pcall(SceneExitState, scene) end )
RegisterSceneOnMessage("SceneOnMessage", function(scene, message) pcall(SceneOnMessage, scene, message) end )
RegisterSceneKeyboardShow("SceneKeyboardShow", function(scene) pcall(SceneKeyboardShow, scene) end )
RegisterSceneKeyboardCancel("SceneKeyboardCancel", function(scene) pcall(SceneKeyboardCancel, scene) end )
RegisterSceneKeyboardReturn("SceneKeyboardReturn", function(scene, text) pcall(SceneKeyboardReturn, scene, text) end )
RegisterSceneRenderHUD("SceneRenderHUD", function(scene) pcall(SceneRenderHUD, scene) end )
RegisterSceneGamePause("SceneGamePause", function(scene) pcall(SceneGamePause, scene) end )
RegisterSceneGameUnPause("SceneGameUnPause", function(scene) pcall(SceneGameUnPause, scene) end )
RegisterSceneTouchesDown("SceneTouchesDown", function(scene, touches) pcall(SceneTouchesDown, scene, touches) end )
RegisterSceneTouchesUp("SceneTouchesUp", function(scene, touches) pcall(SceneTouchesUp, scene, touches) end )
RegisterSceneTouchesMove("SceneTouchesMove", function(scene, touches) pcall(SceneTouchesMove, scene, touches) end )
RegisterSceneTouchesCancelled("SceneTouchesCancelled", function(scene, touches) pcall(SceneTouchesCancelled, scene, touches) end )
RegisterSceneTouchDown("SceneTouchDown", function(scene, touch) pcall(SceneTouchDown, scene, touch) end )
RegisterSceneTouchUp("SceneTouchUp", function(scene, touch) pcall(SceneTouchUp, scene, touch) end )
RegisterSceneTouchMove("SceneTouchMove", function(scene, touch) pcall(SceneTouchMove, scene, touch) end )
RegisterSceneTouchCancelled("SceneTouchCancelled", function(scene, touch) pcall(SceneTouchCancelled, scene, touch) end )
RegisterSceneMouseDown("SceneMouseDown", function(scene, mouse) pcall(SceneMouseDown, scene, mouse) end )
RegisterSceneMouseUp("SceneMouseUp", function(scene, mouse) pcall(SceneMouseUp, scene, mouse) end )
RegisterSceneMouseMove("SceneMouseMove", function(scene, mouse) pcall(SceneMouseMove, scene, mouse) end )
RegisterSceneReceivedMemoryWarning("SceneReceivedMemoryWarning", function(scene) pcall(SceneReceivedMemoryWarning) end )
RegisterSceneWillResignActive("SceneWillResignActive", function(scene) pcall(SceneWillResignActive, scene) end )
RegisterSceneDidBecomeActive("SceneDidBecomeActive", function(scene) pcall(SceneDidBecomeActive, scene) end )
RegisterSceneDidEnterBackground("SceneDidEnterBackground", function(scene) pcall(SceneDidEnterBackground, scene) end )
RegisterSceneWillEnterForeground("SceneWillEnterForeground", function(scene) pcall(SceneWillEnterForeground, scene) end )
RegisterSceneWillTerminate("SceneWillTerminate", function(scene) pcall(SceneWillTerminate, scene) end )
RegisterSceneInterrupt("SceneInterrupt", function(scene) pcall(SceneInterrupt, scene) end )
RegisterSceneResumeInterrupt("SceneResumeInterrupt", function(scene) pcall(SceneResumeInterrupt, scene) end )
RegisterNodeEnterState("NodeEnterState", function(node) pcall(NodeEnterState, node) end )
RegisterNodeUpdateState("NodeUpdateState", function(node, timeStep) pcall(NodeUpdateState, node, timeStep) end )
RegisterNodeExitState("NodeExitState", function(node) pcall(NodeExitState, node) end )
RegisterNodeOnMessage("NodeOnMessage", function(node, message) pcall(NodeOnMessage, node, message) end )
RegisterNodeCollide("NodeCollide", function(node, otherNode, collisionPoint) pcall(NodeCollide, node, otherNode, collisionPoint) end )
RegisterNodeNear("NodeNear", function(node, otherNode) pcall(NodeNear, node, otherNode) end )
RegisterNodeActionUpdate("NodeActionUpdate", function(action) pcall(NodeActionUpdate, action) end )
RegisterNodeActionComplete("NodeActionComplete", function(action, timeStep) pcall(NodeActionComplete, action, timeStep) end )
RegisterNodeRayTouchesDown("NodeRayTouchesDown", function(rayContact) pcall(NodeRayTouchesDown, rayContact) end )
RegisterNodeRayTouchesUp("NodeRayTouchesUp", function(rayContact) pcall(NodeRayTouchesUp, rayContact) end )
RegisterNodeRayTouchesMove("NodeRayTouchesMove", function(rayContact) pcall(NodeRayTouchesMove, rayContact) end )
RegisterNodeRayTouchesCancelled("NodeRayTouchesCancelled", function(rayContact) pcall(NodeRayTouchesCancelled, rayContact) end )
RegisterNodeRayTouchesMissed("NodeRayTouchesMissed", function(node) pcall(NodeRayTouchesMissed, node) end )
RegisterNodeRayTouchDown("NodeRayTouchDown", function(rayContact) pcall(NodeRayTouchDown, rayContact) end )
RegisterNodeRayTouchUp("NodeRayTouchUp", function(rayContact) pcall(NodeRayTouchUp, rayContact) end )
RegisterNodeRayTouchMove("NodeRayTouchMove", function(rayContact) pcall(NodeRayTouchMove, rayContact) end )
RegisterNodeRayTouchCancelled("NodeRayTouchCancelled", function(rayContact) pcall(NodeRayTouchCancelled, rayContact) end )
RegisterNodeRayMouseDown("NodeRayMouseDown", function(rayContact) pcall(NodeRayMouseDown, rayContact) end )
RegisterNodeRayMouseUp("NodeRayMouseUp", function(rayContact) pcall(NodeRayMouseUp, rayContact) end )
RegisterNodeRayMouseMove("NodeRayMouseMove", function(rayContact) pcall(NodeRayMouseMove, rayContact) end )
RegisterNodeRayTouchMissed("NodeRayTouchMissed", function(node) pcall(NodeRayTouchMissed, node) end )
RegisterNodeRayMouseMissed("NodeRayMouseMissed", function(node) pcall(NodeRayMouseMissed, node) end )
RegisterNodeKeyboardShow("NodeKeyboardShow", function(node) pcall(NodeKeyboardShow, node) end )
RegisterNodeKeyboardCancel("NodeKeyboardCancel", function(node) pcall(NodeKeyboardCancel, node) end )
RegisterNodeKeyboardReturn("NodeKeyboardReturn", function(node) pcall(NodeKeyboardReturn, node) end )
RegisterNodeRenderHUD("NodeRenderHUD", function(node) pcall(NodeRenderHUD, node) end )
RegisterNodeGamePause("NodeGamePause", function(node) pcall(NodeGamePause, node) end )
RegisterNodeGameUnPause("NodeGameUnPause", function(node) pcall(NodeGameUnPause, node) end )
RegisterNodeTouchesDown("NodeTouchesDown", function(node, touches) pcall(NodeTouchesDown, node, touches) end )
RegisterNodeTouchesUp("NodeTouchesUp", function(node, touches) pcall(NodeTouchesUp, node, touches) end )
RegisterNodeTouchesMove("NodeTouchesMove", function(node, touches) pcall(NodeTouchesMove, node, touches) end )
RegisterNodeTouchesCancelled("NodeTouchesCancelled", function(node, touches) pcall(NodeTouchesCancelled, node, touches) end )
RegisterNodeTouchDown("NodeTouchDown", function(node, touch) pcall(NodeTouchDown, node, touch) end )
RegisterNodeTouchUp("NodeTouchUp", function(node, touch) pcall(NodeTouchUp, node, touch) end )
RegisterNodeTouchMove("NodeTouchMove", function(node, touch) pcall(NodeTouchMove, node, touch) end )
RegisterNodeTouchCancelled("NodeTouchCancelled", function(node, touch) pcall(NodeTouchCancelled, node, touch) end )
RegisterNodeMouseDown("NodeMouseDown", function(node, mouse) pcall(NodeMouseDown, node, mouse) end )
RegisterNodeMouseUp("NodeMouseUp", function(node, mouse) pcall(NodeMouseUp, node, mouse) end )
RegisterNodeMouseMove("NodeMouseMove", function(node, mouse) pcall(NodeMouseMove, node, mouse) end )
--return gInterface
|
local tonumber = tonumber
local random = math.random
local insert = table.insert
local rcall = redis.call
local results = {}
local member
local argv1 = tonumber(ARGV[1])
local argv2 = tonumber(ARGV[2])
local argv3 = tonumber(ARGV[3])
for member = 1, argv1, 1 do
local score = random(1, argv3)
rcall('zadd', KEYS[1], score, member)
end
insert(results, KEYS[1])
insert(results, argv1)
local initialValue = argv1 + 1
local endValue = initialValue + argv2
for member = initialValue, endValue, 1 do
local score = random(1, argv3)
rcall('zadd', KEYS[2], score, member)
end
insert(results, KEYS[2])
insert(results, argv2)
insert(results, argv3)
return results |
return {'papiamento','papiaments','papoea','papoeas','papoeaas','pap','papa','papadum','papaja','paparazzo','papaver','papaverbol','papaverolie','papaverteelt','papaverzaad','papborstel','papbuik','papegaai','papegaaiduiker','papegaaien','papegaaienbek','papegaaienziekte','papendom','papenkop','papenvreter','paper','paperassen','paperback','paperbackeditie','paperbackuitgave','paperclip','paperclips','papeterie','papfles','papier','papieractie','papierafval','papierbak','papierbedrijf','papierberg','papierbinder','papierbrij','papierconsumptie','papierdoorvoer','papieren','papierenfase','papierfabriek','papierfabrikant','papierformaat','papiergeld','papiergradatie','papiergroothandel','papiergrootte','papierhandel','papierindustrie','papierinvoer','papierklem','papierknijper','papierkwaliteit','papierlengte','papierlinnen','papierloos','papiermachine','papiermaker','papiermand','papiermarkt','papiermerk','papiermolen','papieromslag','papierprijs','papierproducent','papierproductie','papierpulp','papierrol','papierschaarste','papiersector','papierslag','papierslib','papiersnijder','papiersnipper','papiersoort','papierstrook','papierstroom','papiertje','papiertoevoer','papiertouw','papiertransport','papierverbruik','papierverlies','papiervernietiger','papierversnipperaar','papierwaren','papierwerk','papierwinkel','papierwol','papil','papillot','papisme','papist','papje','papkind','paplam','paplepel','pappa','pappen','pappenheimer','papperig','papperigheid','pappie','pappig','pappot','paprika','paprikapoeder','paps','papyrologie','papyrologisch','papyroloog','papyrus','papyrusplant','papyrusrol','papyrustekst','papzak','pappenheimers','papierprikker','papiergebrek','papierdun','papajayoghurt','papierriet','papierbaan','papiercontainer','papaveroogst','papaverplant','papierfabricage','papiergebruik','papierlade','papiertafel','papierverspilling','papiervorm','papierstoring','papiertype','papillomavirus','papeete','papegem','papendrecht','papendrechter','papendrechts','paping','pape','papavoine','papa','pappot','papoease','papas','papaatje','papaatjes','papajas','paparazzi','papaverachtige','papaverbollen','papavers','papavertje','papavertjes','papavervelden','papbuiken','papegaaitje','papegaaitjes','papen','papenvreters','paperbacks','papeten','papierfabrieken','papierfabrikanten','papierklemmen','papierknijpers','papierloze','papiermakers','papiermanden','papiermerken','papiermolens','papierproducenten','papiersnippers','papiertjes','papillen','papilletje','papilletjes','papillotten','papisten','papkinderen','papkindje','paplepels','pappas','papperige','papperiger','papperigste','pappige','pappiger','pappotten','paprikas','papt','papte','papten','papyri','papyrologen','papyrologische','papyrusplanten','papyrusrollen','papyrussen','papyrusteksten','papzakken','papoeaatje','papajaatje','papegaaiduikers','paperbackuitgaven','papers','papflessen','papieracties','papierbakken','papierbinders','papierformaten','papiermachines','papierrollen','papierslagen','papierstroken','papierwinkels','pappaatje','paprikaatje','papierdunne','papiersoorten','pappies','papjes','papiersnijders','papegaaienbekken','papiervernietigers','papadums','papierprikkers','papierversnipperaars','papiercontainers','papierbergen','papierstromen','papierlades','papierstoringen','papierprijzen','papierstrookjes','papaverplanten','papaverbolletjes','papierkwaliteiten','papierklemmetje','papierbanen','papendrechtse'} |
#!/usr/bin/env gt
--[[
Copyright (c) 2014-2015 Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014-2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
]]
package.path = gt.script_dir .. "/?.lua;" .. package.path
require("lib")
require("optparse")
op = OptionParser:new({usage="%prog <options> <GFF annotation> <GO OBO file> <organism name> <sequence> [GAF]",
oneliner="For a GFF3 file produced by annotation pipeline, output EMBL format.",
version="0.1"})
op:option{"-e", action='store_true', dest='embl_compliant',
help="output reduced 'ENA compliant' format"}
options,args = op:parse({embl_compliant=false})
function usage()
op:help()
os.exit(1)
end
if #args < 4 then
usage()
end
embl_compliant = options.embl_compliant ~= false
seqfile = args[4]
gaffile = args[5]
obofile = args[2]
gff3file = args[1]
organismname = args[3]
region_mapping = gt.region_mapping_new_seqfile_matchdescstart(seqfile)
function parse_obo(filename)
local gos = {}
local this_id = {}
local this_name = nil
for l in io.lines(filename) do
if string.match(l, "%[Term%]") then
if #this_id and this_name then
for _, n in ipairs(this_id) do
gos[n] = this_name
end
end
this_id = {}
this_term = nil
end
m = string.match(l, "id: (.+)")
if m then
table.insert(this_id, m)
end
m = string.match(l, "^name: (.+)")
if m then
this_name = m
end
end
return gos
end
collect_vis = gt.custom_visitor_new()
collect_vis.lengths = {}
collect_vis.seqs = {}
collect_vis.pps = {}
function collect_vis:visit_feature(fn)
if fn:get_type() == "polypeptide" then
local df = fn:get_attribute("Derives_from")
if df then
self.pps[df] = fn
end
end
return 0
end
function format_embl_attrib(node, attrib, qualifier, fct)
if node and node:get_attribute(attrib) then
for _,v in ipairs(split(node:get_attribute(attrib), ",")) do
if fct then
s = fct(v)
else
s = gff3_decode(v)
end
if s then
io.write("FT /" .. qualifier .. "=\"" .. s .."\"\n")
end
end
end
end
function format_embl_sequence(sequence)
local a = 0
local c = 0
local g = 0
local t = 0
local other = 0
local l = 0
-- count char distribution
for ch in sequence:gmatch("%a") do
ch = string.lower(ch)
l = l + 1
if ch == "a" then
a = a + 1
elseif ch == "c" then
c = c + 1
elseif ch == "g" then
g = g + 1
elseif ch == "t" then
t = t + 1
else
other = other + 1
end
end
-- show statistics
io.write("SQ Sequence " .. l .. " BP; " .. a .. " A; ".. c .. " C; "..
g .. " G; ".. t .. " T; "..
other .. " other;\n")
local i = 1
local pos = 0
-- format and output sequence
io.write(" ")
for c in sequence:gmatch("%a", 10) do
io.write(c)
if i % 10 == 0 then
io.write(" ")
end
if i % 60 == 0 then
io.write(string.format("%9s\n ", i))
end
i = i + 1
end
io.write(string.format(string.rep(' ',(80-i%60-(i%60)/10-13)) .. "%10d\n", i-1))
end
embl_vis = gt.custom_visitor_new()
embl_vis.pps = collect_vis.pps
embl_vis.gos = parse_obo(obofile)
embl_vis.last_seqid = nil
function embl_vis:visit_feature(fn)
if embl_vis.last_seqid ~= fn:get_seqid() then
if embl_vis.last_seqid then
format_embl_sequence(collect_vis.seqs[embl_vis.last_seqid])
io.write("//\n")
io.output():close()
end
embl_vis.last_seqid = fn:get_seqid()
io.output(fn:get_seqid()..".embl", "w+")
if embl_compliant then
io.write("ID XXX; XXX; linear; XXX; XXX; XXX; XXX.\n")
io.write("XX \n")
io.write("AC XXX;\n")
io.write("XX \n")
else
io.write("ID " .. fn:get_seqid() .. "; SV 1; linear; "
.. "genomic DNA; STD; UNC; "
.. tostring(collect_vis.lengths[fn:get_seqid()]) .." BP.\n")
io.write("XX \n")
io.write("AC " .. fn:get_seqid() .. ";\n")
io.write("XX \n")
end
io.write("PR Project:00000000;\n")
io.write("XX \n")
io.write("DE " .. organismname .. ", " .. fn:get_seqid() .. ".\n")
io.write("XX \n")
io.write("KW \n")
io.write("XX \n")
io.write("RN [1]\n")
io.write("RA Authors;\n")
io.write("RT Title;\n")
io.write("RL Unpublished.\n")
io.write("XX \n")
io.write("OS " .. arg[3] .. "\n")
io.write("XX \n")
io.write("FH Key Location/Qualifiers\n")
io.write("FH \n")
io.write("FT source 1.." .. collect_vis.lengths[fn:get_seqid()] .. "\n")
io.write("FT /organism=\"" .. arg[3] .. "\"\n")
io.write("FT /mol_type=\"genomic DNA\"\n")
end
for node in fn:get_children() do
if node:get_type() == "mRNA" or node:get_type() == "pseudogenic_transcript" then
local cnt = 0
for cds in node:get_children() do
if cds:get_type() == "CDS" or cds:get_type() == "pseudogenic_exon" then
cnt = cnt + 1
end
end
io.write("FT CDS ")
if node:get_strand() == "-" then
io.write("complement(")
end
if cnt > 1 then
io.write("join(")
end
local i = 1
local coding_length = 0
for cds in node:get_children() do
if cds:get_type() == "CDS" or cds:get_type() == "pseudogenic_exon" then
if i == 1 and fn:get_attribute("Start_range") then
io.write("<")
end
io.write(cds:get_range():get_start())
io.write("..")
if i == cnt and fn:get_attribute("End_range") then
io.write(">")
end
io.write(cds:get_range():get_end())
if i ~= cnt then
io.write(",")
end
coding_length = coding_length + cds:get_range():length()
i = i + 1
end
end
if cnt > 1 then
io.write(")")
end
if node:get_strand() == "-" then
io.write(")")
end
io.write("\n")
local pp = self.pps[node:get_attribute("ID")]
format_embl_attrib(node , "ID", "locus_tag", nil)
if fn:get_type() == "pseudogene" then
io.write("FT /pseudo\n")
--io.write("FT /pseudogene=\"unknown\"\n")
format_embl_attrib(pp, "product", "note",
function (s)
local pr_a = gff3_extract_structure(s)
local gprod = pr_a[1].term
if gprod then
return "product: " .. gprod
else
return nil
end
end)
else
format_embl_attrib(pp, "product", "product",
function (s)
local pr_a = gff3_extract_structure(s)
local gprod = pr_a[1].term
if gprod then
return gprod
else
return nil
end
end)
end
format_embl_attrib(pp, "Dbxref", "EC_number",
function (s)
m = string.match(s, "EC:([0-9.-]+)")
if m then
return m
else
return nil
end
end)
-- add gene to 'unroll' multiple spliceforms
local geneid = fn:get_attribute("ID")
if geneid then
io.write("FT /gene=\"".. geneid .. "\"\n")
end
-- translation
local protseq = nil
if node:get_type() == "mRNA" then
protseq = node:extract_and_translate_sequence("CDS", true,
region_mapping)
io.write("FT /translation=\"" .. protseq:sub(1,-2) .."\"\n")
end
io.write("FT /transl_table=1\n")
-- orthologs
local nof_orths = 0
if pp and pp:get_attribute("orthologous_to") and not embl_compliant then
for _,v in ipairs(split(pp:get_attribute("orthologous_to"), ",")) do
io.write("FT /ortholog=\"" ..
v .. " " .. v .. ";program=OrthoMCL;rank=0\"\n")
nof_orths = nof_orths + 1
end
end
-- assign colours
if node:get_type() == "mRNA" and not embl_compliant then
local prod = pp:get_attribute("product")
if prod then
if prod ~= "term%3Dhypothetical protein" then
if nof_orths > 0 or prod:match("conserved") then
io.write("FT /colour=10\n") -- orange: conserved
else
io.write("FT /colour=7\n") -- yellow: assigned Pfam
end
else
if coding_length < 500 then
io.write("FT /colour=6\n") -- dark pink: short unlikely
else
io.write("FT /colour=8\n") -- light green: hypothetical
end
end
end
elseif node:get_type() == "pseudogenic_transcript" and not embl_compliant then
io.write("FT /colour=13\n") -- pseudogene
end
-- add name
local name = fn:get_attribute("Name")
if name and not embl_compliant then
io.write("FT /primary_name=\"".. name .. "\"\n")
end
-- GO terms
local geneid = fn:get_attribute("ID")
if geneid then
if self.gaf and self.gaf[geneid] and not embl_compliant then
for _,v in ipairs(self.gaf[geneid]) do
io.write("FT /GO=\"aspect=" .. v.aspect ..
";GOid=" .. v.goid ..
";term=" .. self.gos[v.goid] ..
";with=" .. v.withfrom ..
";evidence=" .. v.evidence .. "\"\n")
end
end
end
elseif node:get_type() == "tRNA" then
io.write("FT tRNA ")
if node:get_strand() == "-" then
io.write("complement(")
end
io.write(node:get_range():get_start() .. ".." .. node:get_range():get_end())
if node:get_strand() == "-" then
io.write(")")
end
io.write("\n")
if node:get_attribute("aa") then
io.write("FT /product=\"" .. node:get_attribute("aa") .. " transfer RNA")
if node:get_attribute("anticodon") then
io.write(" (" .. node:get_attribute("anticodon") .. ")")
end
io.write("\"\n")
end
format_embl_attrib(node , "ID", "locus_tag", nil)
elseif string.match(node:get_type(), "snRNA") or string.match(node:get_type(), "snoRNA") then
io.write("FT ncRNA ")
if node:get_strand() == "-" then
io.write("complement(")
end
io.write(node:get_range():get_start() .. ".." .. node:get_range():get_end())
if node:get_strand() == "-" then
io.write(")")
end
io.write("\n")
io.write("FT /ncRNA_class=\"" .. node:get_type() .. "\"\n")
format_embl_attrib(node , "ID", "locus_tag", nil)
elseif string.match(node:get_type(), "rRNA") then
io.write("FT rRNA ")
if node:get_strand() == "-" then
io.write("complement(")
end
io.write(node:get_range():get_start() .. ".." .. node:get_range():get_end())
if node:get_strand() == "-" then
io.write(")")
end
io.write("\n")
io.write("FT /product=\"" .. node:get_type() .. "\"\n")
format_embl_attrib(node , "ID", "locus_tag", nil)
elseif string.match(node:get_type(), "gap") then
io.write("FT gap ")
io.write(node:get_range():get_start() .. ".." .. node:get_range():get_end())
io.write("\n")
io.write("FT /estimated_length=" .. node:get_range():length() .. "\n")
end
end
return 0
end
-- load GAF
gaf_store = {}
if gaffile then
for l in io.lines(gaffile) do
if l:sub(1,1) ~= '!' then
local db,dbid,dbobj,qual,goid,dbref,evidence,withfrom,aspect,dbobjname,
dbobjsyn,dbobjtype,taxon,data,assignedby = unpack(split(l, '\t'))
if not gaf_store[dbid] then
gaf_store[dbid] = {}
end
table.insert(gaf_store[dbid], {db=db, dbid=dbid, qual=qual, goid=goid,
dbref=dbref, evidence=evidence, withfrom=withfrom,
aspect=aspect, dbobjname=dbobjname,
dbobjsyn=dbobjsyn, dbobjtype=dbobjtype,
taxon=taxon, data=data, assignedby=assignedby})
end
end
end
-- make simple visitor stream, just applies given visitor to every node
visitor_stream = gt.custom_stream_new_unsorted()
function visitor_stream:next_tree()
local node = self.instream:next_tree()
if node then
node:accept(self.vis)
end
return node
end
-- get sequences, sequence lengths and derives_from relationships
visitor_stream.instream = gt.gff3_in_stream_new_sorted(gff3file)
visitor_stream.vis = collect_vis
local gn = visitor_stream:next_tree()
while (gn) do
gn = visitor_stream:next_tree()
end
keys, seqs = get_fasta_nosep(seqfile)
collect_vis.seqs = {}
collect_vis.lengths = {}
for k,v in pairs(seqs) do
collect_vis.seqs[k] = v
collect_vis.lengths[k] = v:len()
end
-- output EMBL code as we traverse the GFF
visitor_stream.instream = gt.gff3_in_stream_new_sorted(gff3file)
visitor_stream.vis = embl_vis
embl_vis.obo = gos
embl_vis.gaf = gaf_store
local gn = visitor_stream:next_tree()
while (gn) do
gn = visitor_stream:next_tree()
end
-- output last seq
format_embl_sequence(collect_vis.seqs[embl_vis.last_seqid])
io.write("//\n")
io.output():close()
|
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local sceneName = ...
local composer = require( "composer" )
local scene = composer.newScene(sceneName)
local _K = require("Application")
scene._composerFileName = nil
scene.classType = "{{classType}}"
scene.pageUI = require("{{custom}}{{pageUI}}").new(scene, {{imagePage}} )
------------------------------------------------------------
------------------------------------------------------------
function scene:create( event )
local sceneGroup = self.view
self.pageUI:create(self, event.params)
Runtime:dispatchEvent({name="onRobotlegsViewCreated", target=self})
end
--
function scene:show( event )
local sceneGroup = self.view
if event.phase == "did" then
self.pageUI:didShow(self, event.params)
{{#scrnSave}}
local _AC = require("commands.kwik.actionCommand")
_AC.Screenshot:saveToFile({{delay}}, sceneGroup, "page0{{pageNum}}", {{numFrames}} )
{{/scrnSave}}
end
end
--
function scene:hide( event )
if event.phase == "will" then
if event.parent then
event.parent.pageUI:resume()
end
self.pageUI:didHide(self, event.params)
elseif event.phase == "did" then
end
end
--
function scene:destroy( event )
self.pageUI:destroy(self, event.params)
Runtime:dispatchEvent({name="onRobotlegsViewDestroyed", target=self})
end
--
scene:addEventListener( "create", scene )
scene:addEventListener( "show", scene )
scene:addEventListener( "hide", scene )
scene:addEventListener( "destroy", scene )
return scene
|
---------------------------------------------------------------------------------------------------
--
--filename: game.ui.MainBottom
--date:2019/11/22 23:11:45
--author:heguang
--desc:主界面底部
--
---------------------------------------------------------------------------------------------------
local strClassName = 'game.ui.MainBottom'
local MainBottom = lua_declare(strClassName, lua_class(strClassName))
function MainBottom:Start()
local buttonList = self.transform:Find("ButtonList")
local numChild = buttonList.childCount
self.offset = 750 / 2
self.defaultSize = 750 / (numChild + 1)
self.buttons = {}
self.selectedIndex = 1
for i=0, numChild-1 do
local childTransform =buttonList:GetChild(i)
EventListener.Get(childTransform, self).onClick = self.OnClickButton
table.insert(self.buttons, {tf = childTransform})
end
self.selectedButton = self.buttons[self.selectedIndex].tf.gameObject
self.selectedFlag = self.transform:Find("ImageFlag")
self.selectedFlag.sizeDelta = Vector2(self.defaultSize*2, 125)
self.selectedFlagCurrentPosition = self.selectedFlag.anchoredPosition
self.selectedAnim = false
self.selectedTimer = 0
self.selectedTime = 1.0
self.adjust = false
self.adjustTimer = 0
self.adjustTime = 0.1
--self:OnClickButton(self.selectedButton)
end
function MainBottom:Update()
if self.adjust then
self.adjustTimer = self.adjustTimer + Time.deltaTime
if self.adjustTimer < self.adjustTime then
local t = self.adjustTimer / self.adjustTime
for i,item in ipairs(self.buttons) do
local pos = Vector2.Lerp(item.currentPos, item.pos, t)
local size = Vector2.Lerp(item.currentSize, item.size, t)
item.tf.anchoredPosition = pos
item.tf.sizeDelta = size
end
else
self.adjust = false
for i,item in ipairs(self.buttons) do
item.tf.anchoredPosition = item.pos
item.tf.sizeDelta = item.size
end
end
end
if self.selectedAnim then
self.selectedTimer = self.selectedTimer + Time.deltaTime
if self.selectedTimer < self.selectedTime then
local t = self.selectedTimer / self.selectedTime
self.selectedFlag.anchoredPosition = Vector2.Lerp(self.selectedFlagCurrentPosition, self.selectedFlagPosition, Ease.ElasticOut(t))
else
self.selectedAnim = false
self.selectedFlag.anchoredPosition = self.selectedFlagPosition
end
end
end
function MainBottom:SetCurrentIndex(idx)
if idx < 1 or idx > #self.buttons then
return
end
self:OnClickButton(self.buttons[idx].tf.gameObject, false)
end
function MainBottom:OnClickButton(go, notify)
if self.selectedButton == go then
return
end
if notify == nil then
notify = true
end
local pos = 0
for i,v in ipairs(self.buttons) do
local size
local yPos = 0
local textObj = v.tf:Find("Text").gameObject
if v.tf.gameObject == go then
self.selectedIndex = i
self.selectedButton = go
size = self.defaultSize * 2
yPos = 20
textObj:SetActive(true)
else
size = self.defaultSize
yPos = 0
textObj:SetActive(false)
end
v.size = Vector2(size, 125)
v.pos = Vector2(pos + size * 0.5 - self.offset, yPos)
v.currentSize = v.tf.sizeDelta
v.currentPos = v.tf.anchoredPosition
pos = pos + size
end
self.adjust = true
self.adjustTimer = 0
self.selectedAnim = true
self.selectedTimer = 0
self.selectedFlagCurrentPosition = self.selectedFlag.anchoredPosition
self.selectedFlagPosition = Vector2(self.buttons[self.selectedIndex].pos.x, 0)
if notify then
OzMessage:dispatchEvent(CommonEvent.MainPageChange, self.selectedIndex)
end
end
return MainBottom
|
EEex_AddResetListener(function()
Infinity_DoFile("M_BDebug")
end)
function getActionbarButton(buttonIndex)
if buttonIndex < 0 or buttonIndex > 11 then
error("buttonIndex out of bounds", 2)
end
local ecx = rdword(rdword(0x93FDBC) + 0xD14)
local actionbarAddress = rdword(rdword(ecx + rbyte(ecx + 0x3DA0, 0) * 4 + 0x3DA4) + 0x204) + 0x2654
return rdword(actionbarAddress + 0x1440 + buttonIndex * 0x4)
end
function B3ActionbarDebug(config)
Infinity_DisplayString(" ")
Infinity_DisplayString("DEBUG: [Engine] Actionbar Config => "..config)
for i = 0, 11, 1 do
Infinity_DisplayString("DEBUG: [Engine] Actionbar Button["..i.."] => "..getActionbarButton(i))
end
end
EEex_AddActionbarListener(B3ActionbarDebug)
|
--[[
kms
also, if you came here for a token, move away because there aint any tokens.
special thanks to Ted Kaczynski#2736 or https://github.com/geniiii
]]
--functions--
local discordia = require("discordia")
local json = require("./json")
local stuff = require("./modules/stuff")
local a = "Prefix is '%s' || https://discord.gg/gVHyBAJ"
function string.starts(String, Start)
return string.sub(String, 1, string.len(Start)) == Start
end
local client = discordia.Client()
local logger = discordia.Logger(3, "%F %T")
local file = io.open("./config.json", r)
local content = file:read("*all")
local config = json.decode(content)
file:close()
--commands--
client:on(
"ready",
function()
client:setGame(a:format(config["prefix"]))
logger:log(3, "bitch you logged in as %s", client.user.username)
end
)
client:on(
"messageCreate",
function(message)
local prefix = config["prefix"]
if not string.starts(message.content, prefix) then
return
end
local content = message.content:sub(prefix:len() + 1)
local cmds, arg = content:match("(%S+) (.*)")
cmds = cmds or content
if stuff[cmds] then
local commandoutput = stuff[cmds](arg, message)
if commandoutput ~= nil then
message.channel:send(commandoutput)
end
end
end
)
client:run("Bot " .. config["token"])
|
-- read/write
function hunger.read(player)
local inv = player:get_inventory()
if not inv then
return nil
end
local hgp = inv:get_stack("hunger", 1):get_count()
if hgp == 0 then
hgp = 21
inv:set_stack("hunger", 1, ItemStack({name = ":", count = hgp}))
else
hgp = hgp
end
if tonumber(hgp) > HUNGER_MAX + 1 then
hgp = HUNGER_MAX + 1
end
return hgp - 1
end
function hunger.save(player)
local inv = player:get_inventory()
local name = player:get_player_name()
local value = hunger.players[name].lvl
if not inv or not value then
return nil
end
if value > HUNGER_MAX then
value = HUNGER_MAX
end
if value < 0 then
value = 0
end
inv:set_stack("hunger", 1, ItemStack({name = ":", count = value + 1}))
return true
end
function hunger.update_hunger(player, new_lvl)
local name = player:get_player_name() or nil
if not name then
return false
end
if minetest.setting_getbool("enable_damage") == false then
hunger.players[name] = 20
return
end
local lvl = hunger.players[name].lvl
if new_lvl then
lvl = new_lvl
end
if lvl > HUNGER_MAX then
lvl = HUNGER_MAX
end
hunger.players[name].lvl = lvl
if lvl > 20 then
lvl = 20
end
hud.change_item(player, "hunger", {number = lvl})
hunger.save(player)
end
local update_hunger = hunger.update_hunger
-- player-action based hunger changes
function hunger.handle_node_actions(pos, oldnode, player, ext)
if not player or not player:is_player() then
return
end
local name = player:get_player_name()
if not name or not hunger.players[name] then
return
end
local exhaus = hunger.players[name].exhaus
if not exhaus then
hunger.players[name].exhaus = 0
--return
end
local new = HUNGER_EXHAUST_PLACE
-- placenode event
if not ext then
new = HUNGER_EXHAUST_DIG
end
-- assume its send by action_timer(globalstep)
if not pos and not oldnode then
new = HUNGER_EXHAUST_MOVE
end
exhaus = exhaus + new
if exhaus > HUNGER_EXHAUST_LVL then
exhaus = 0
local h = tonumber(hunger.players[name].lvl)
if h > 0 then
update_hunger(player, h - 1)
end
end
hunger.players[name].exhaus = exhaus
end
-- Time based hunger functions
local hunger_timer = 0
local health_timer = 0
local action_timer = 0
local function hunger_globaltimer(dtime)
hunger_timer = hunger_timer + dtime
health_timer = health_timer + dtime
action_timer = action_timer + dtime
if action_timer > HUNGER_MOVE_TICK then
for _,player in ipairs(minetest.get_connected_players()) do
local controls = player:get_player_control()
-- Determine if the player is walking
if controls.up or controls.down or controls.left or controls.right then
hunger.handle_node_actions(nil, nil, player)
end
end
action_timer = 0
end
-- lower saturation by 1 point after <HUNGER_TICK> second(s)
if hunger_timer > HUNGER_TICK then
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
local tab = hunger.players[name]
if tab then
local hunger = tab.lvl
if hunger > 0 then
update_hunger(player, hunger - 1)
end
end
end
hunger_timer = 0
end
-- heal or damage player, depending on saturation
if health_timer > HUNGER_HEALTH_TICK then
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
local tab = hunger.players[name]
if tab then
local air = player:get_breath() or 0
local hp = player:get_hp()
-- heal player by 1 hp if not dead and saturation is > 15 (of 30) player is not drowning
if tonumber(tab.lvl) > HUNGER_HEAL_LVL and hp > 0 and air > 0 then
player:set_hp(hp + HUNGER_HEAL)
end
-- or damage player by 1 hp if saturation is < 2 (of 30)
if tonumber(tab.lvl) < HUNGER_STARVE_LVL then
player:set_hp(hp - HUNGER_STARVE)
end
end
end
health_timer = 0
end
end
if minetest.setting_getbool("enable_damage") then
minetest.register_globalstep(hunger_globaltimer)
end
-- food functions
local food = hunger.food
function hunger.register_food(name, hunger_change, replace_with_item, poisen, heal, sound)
food[name] = {}
food[name].saturation = hunger_change -- hunger points added
food[name].replace = replace_with_item -- what item is given back after eating
food[name].poisen = poisen -- time its poisening
food[name].healing = heal -- amount of HP
food[name].sound = sound -- special sound that is played when eating
end
-- Poison player
local function poisenp(tick, time, time_left, player)
time_left = time_left + tick
if time_left < time then
minetest.after(tick, poisenp, tick, time, time_left, player)
else
hud.change_item(player, "hunger", {text = "hud_hunger_fg.png"})
end
local hp = player:get_hp() -1 or 0
if hp > 0 then
player:set_hp(hp)
end
end
-- wrapper for minetest.item_eat (this way we make sure other mods can't break this one)
local org_eat = core.do_item_eat
core.do_item_eat = function(hp_change, replace_with_item, itemstack, user, pointed_thing)
local old_itemstack = itemstack
itemstack = hunger.eat(hp_change, replace_with_item, itemstack, user, pointed_thing)
for _, callback in pairs(core.registered_on_item_eats) do
local result = callback(hp_change, replace_with_item, itemstack, user, pointed_thing, old_itemstack)
if result then
return result
end
end
return itemstack
end
function hunger.eat(hp_change, replace_with_item, itemstack, user, pointed_thing)
local item = itemstack:get_name()
local def = food[item]
if not def then
def = {}
if type(hp_change) ~= "number" then
hp_change = 1
core.log("error", "Wrong on_use() definition for item '" .. item .. "'")
end
def.saturation = hp_change * 1.3
def.replace = replace_with_item
end
local func = hunger.item_eat(def.saturation, def.replace, def.poisen, def.healing, def.sound)
return func(itemstack, user, pointed_thing)
end
function hunger.item_eat(hunger_change, replace_with_item, poisen, heal, sound)
return function(itemstack, user, pointed_thing)
if itemstack:take_item() == nil and user == nil then
return itemstack
end
local name = user:get_player_name()
if not hunger.players[name] then
return itemstack
end
local sat = tonumber(hunger.players[name].lvl or 0)
local hp = user:get_hp()
-- Saturation
if sat < HUNGER_MAX and hunger_change then
sat = sat + hunger_change
hunger.update_hunger(user, sat)
end
-- Healing
if hp < 20 and heal then
hp = hp + heal
if hp > 20 then
hp = 20
end
user:set_hp(hp)
end
-- Poison
if poisen then
hud.change_item(user, "hunger", {text = "hunger_statbar_poisen.png"})
poisenp(1.0, poisen, 0, user)
end
-- eating sound
sound = sound or "hunger_eat"
minetest.sound_play(sound, {to_player = name, gain = 0.7})
if replace_with_item then
if itemstack:is_empty() then
itemstack:add_item(replace_with_item)
else
local inv = user:get_inventory()
if inv:room_for_item("main", {name = replace_with_item}) then
inv:add_item("main", replace_with_item)
else
local pos = user:getpos()
pos.y = math.floor(pos.y + 0.5)
core.add_item(pos, replace_with_item)
end
end
end
return itemstack
end
end
|
local menu_state = {}
local anims = {
{ dict = "random@mugging3","handsup_standing_base", anim = "handsup_standing_base" },
{ dict = "random@arrests@busted", anim = "idle_a" },
{ dict = "anim@heists@heist_corona@single_team", anim = "single_team_loop_boss" },
{ dict = "mini@strip_club@idles@bouncer@base", anim = "base" },
{ dict = "anim@mp_player_intupperfinger", anim = "idle_a_fp" },
{ dict = "random@arrests", anim = "generic_radio_enter" },
{ dict = "mp_player_int_upperpeace_sign", anim = "mp_player_int_peace_sign" }
}
function tvRP.openMenuData(menudata)
SendNUIMessage({ act = "open_menu", menudata = menudata })
end
function tvRP.closeMenu()
SendNUIMessage({ act = "close_menu" })
end
function tvRP.getMenuState()
return menu_state
end
local agachar = false
function tvRP.getAgachar()
return agachar
end
--[ CANCELANDO O F6 ]--------------------------------------------------------------------------------------------------------------------
local cancelando = false
RegisterNetEvent('cancelando')
AddEventHandler('cancelando',function(status)
cancelando = status
end)
Citizen.CreateThread(function()
while true do
local idle = 1000
if cancelando then
idle = 5
BlockWeaponWheelThisFrame()
DisableControlAction(0,29,true)
DisableControlAction(0,38,true)
DisableControlAction(0,47,true)
DisableControlAction(0,56,true)
DisableControlAction(0,57,true)
DisableControlAction(0,73,true)
DisableControlAction(0,137,true)
DisableControlAction(0,166,true)
DisableControlAction(0,167,true)
DisableControlAction(0,169,true)
DisableControlAction(0,170,true)
DisableControlAction(0,182,true)
DisableControlAction(0,187,true)
DisableControlAction(0,188,true)
DisableControlAction(0,189,true)
DisableControlAction(0,190,true)
DisableControlAction(0,243,true)
DisableControlAction(0,245,true)
DisableControlAction(0,257,true)
DisableControlAction(0,288,true)
DisableControlAction(0,289,true)
DisableControlAction(0,311,true)
DisableControlAction(0,344,true)
end
if menu_celular then
idle = 5
BlockWeaponWheelThisFrame()
DisableControlAction(0,16,true)
DisableControlAction(0,17,true)
DisableControlAction(0,24,true)
DisableControlAction(0,25,true)
DisableControlAction(0,29,true)
DisableControlAction(0,56,true)
DisableControlAction(0,57,true)
DisableControlAction(0,73,true)
DisableControlAction(0,166,true)
DisableControlAction(0,167,true)
DisableControlAction(0,170,true)
DisableControlAction(0,182,true)
DisableControlAction(0,187,true)
DisableControlAction(0,188,true)
DisableControlAction(0,189,true)
DisableControlAction(0,190,true)
DisableControlAction(0,243,true)
DisableControlAction(0,245,true)
DisableControlAction(0,257,true)
DisableControlAction(0,288,true)
DisableControlAction(0,289,true)
DisableControlAction(0,344,true)
end
if menu_state.opened then
idle = 5
DisableControlAction(0,75)
end
for _,block in pairs(anims) do
if IsEntityPlayingAnim(PlayerPedId(),block.dict,block.anim,3) or object then
idle = 5
BlockWeaponWheelThisFrame()
DisableControlAction(0,16,true)
DisableControlAction(0,17,true)
DisableControlAction(0,24,true)
DisableControlAction(0,25,true)
DisableControlAction(0,137,true)
DisableControlAction(0,245,true)
DisableControlAction(0,257,true)
end
end
if apontar then
idle = 5
local camPitch = GetGameplayCamRelativePitch()
if camPitch < -70.0 then
camPitch = -70.0
elseif camPitch > 42.0 then
camPitch = 42.0
end
camPitch = (camPitch + 70.0) / 112.0
local camHeading = GetGameplayCamRelativeHeading()
local cosCamHeading = Cos(camHeading)
local sinCamHeading = Sin(camHeading)
if camHeading < -180.0 then
camHeading = -180.0
elseif camHeading > 180.0 then
camHeading = 180.0
end
camHeading = (camHeading + 180.0) / 360.0
local blocked = 0
local nn = 0
local coords = GetOffsetFromEntityInWorldCoords(ped,(cosCamHeading*-0.2)-(sinCamHeading*(0.4*camHeading+0.3)),(sinCamHeading*-0.2)+(cosCamHeading*(0.4*camHeading+0.3)),0.6)
local ray = Cast_3dRayPointToPoint(coords.x,coords.y,coords.z-0.2,coords.x,coords.y,coords.z+0.2,0.4,95,ped,7);
nn,blocked,coords,coords = GetRaycastResult(ray)
Citizen.InvokeNative(0xD5BB4025AE449A4E,ped,"Pitch",camPitch)
Citizen.InvokeNative(0xD5BB4025AE449A4E,ped,"Heading",camHeading*-1.0+1.0)
Citizen.InvokeNative(0xB0A6CFD2C69C1088,ped,"isBlocked",blocked)
Citizen.InvokeNative(0xB0A6CFD2C69C1088,ped,"isFirstPerson",Citizen.InvokeNative(0xEE778F8C7E1142E2,Citizen.InvokeNative(0x19CAFA3C87F7C2FF))==4)
end
Citizen.Wait(idle)
end
end)
function tvRP.prompt(title,default_text)
SendNUIMessage({ act = "prompt", title = title, text = tostring(default_text) })
SetNuiFocus(true)
end
function tvRP.request(id,text,time)
SendNUIMessage({ act = "request", id = id, text = tostring(text), time = time })
end
RegisterNUICallback("menu",function(data,cb)
if data.act == "close" then
vRPserver._closeMenu(data.id)
elseif data.act == "valid" then
vRPserver._validMenuChoice(data.id,data.choice,data.mod)
end
end)
RegisterNUICallback("menu_state",function(data,cb)
menu_state = data
end)
RegisterNUICallback("prompt",function(data,cb)
if data.act == "close" then
SetNuiFocus(false)
vRPserver._promptResult(data.result)
end
end)
RegisterNUICallback("request",function(data,cb)
if data.act == "response" then
vRPserver._requestResult(data.id,data.ok)
end
end)
RegisterNUICallback("init",function(data,cb)
SendNUIMessage({ act = "cfg", cfg = {} })
TriggerEvent("vRP:NUIready")
end)
function tvRP.setDiv(name,css,content)
SendNUIMessage({ act = "set_div", name = name, css = css, content = content })
end
function tvRP.setDivContent(name,content)
SendNUIMessage({ act = "set_div_content", name = name, content = content })
end
function tvRP.removeDiv(name)
SendNUIMessage({ act = "remove_div", name = name })
end
local apontar = false
local object = nil
function tvRP.loadAnimSet(dict)
RequestAnimSet(dict)
while not HasAnimSetLoaded(dict) do
Citizen.Wait(10)
end
SetPedMovementClipset(PlayerPedId(),dict,0.25)
end
function tvRP.CarregarAnim(dict)
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
Citizen.Wait(10)
end
end
function tvRP.CarregarObjeto(dict,anim,prop,flag,hand,pos1,pos2,pos3,pos4,pos5,pos6)
local ped = PlayerPedId()
RequestModel(GetHashKey(prop))
while not HasModelLoaded(GetHashKey(prop)) do
Citizen.Wait(10)
end
if pos1 then
local coords = GetOffsetFromEntityInWorldCoords(ped,0.0,0.0,-5.0)
object = CreateObject(GetHashKey(prop),coords.x,coords.y,coords.z,true,true,true)
SetEntityCollision(object,false,false)
AttachEntityToEntity(object,ped,GetPedBoneIndex(ped,hand),pos1,pos2,pos3,pos4,pos5,pos6,true,true,false,true,1,true)
else
tvRP.CarregarAnim(dict)
TaskPlayAnim(ped,dict,anim,3-.0,3.0,-1,flag,0,0,0,0)
local coords = GetOffsetFromEntityInWorldCoords(ped,0.0,0.0,-5.0)
object = CreateObject(GetHashKey(prop),coords.x,coords.y,coords.z,true,true,true)
SetEntityCollision(object,false,false)
AttachEntityToEntity(object,ped,GetPedBoneIndex(ped,hand),0.0,0.0,0.0,0.0,0.0,0.0,false,false,false,false,2,true)
end
Citizen.InvokeNative(0xAD738C3085FE7E11,object,true,true)
return object
end
function tvRP.DeletarObjeto()
tvRP.stopAnim(true)
TriggerEvent("binoculos")
if DoesEntityExist(object) then
TriggerServerEvent("trydeleteobj",ObjToNet(object))
object = nil
end
end
function tvRP.JogadorComObjetoAnexado()
if DoesEntityExist(object) then
if IsEntityAttachedToAnyPed(object) then return true else return false end
end
return false
end
local menu_celular = false
RegisterNetEvent("status:celular")
AddEventHandler("status:celular",function(status)
menu_celular = status
end)
--[ COOLDOWN ]---------------------------------------------------------------------------------------------------------------------------
local cooldown = 0
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if cooldown > 0 then
cooldown = cooldown - 1
end
end
end)
--[ ]-----------------------------------------------------------------------------
RegisterKeyMapping ( 'vrp:accept' , 'Aceitar' , 'keyboard' , 'y' )
RegisterCommand('vrp:accept', function()
SendNUIMessage({ act = "event", event = "Y" })
end, false)
RegisterKeyMapping ( 'vrp:decline' , 'Negar' , 'keyboard' , 'n' )
RegisterCommand('vrp:decline', function()
SendNUIMessage({ act = "event", event = "U" })
end, false)
--[ ]-----------------------------------------------------------------------------
RegisterKeyMapping ( 'vrp:up' , 'Cima' , 'keyboard' , 'UP' )
RegisterCommand('vrp:up', function()
if menu_state.opened then
SendNUIMessage({ act = "event", event = "UP" })
tvRP.playSound("NAV_UP_DOWN","HUD_FRONTEND_DEFAULT_SOUNDSET")
end
end, false)
RegisterKeyMapping ( 'vrp:down' , 'Baixo' , 'keyboard' , 'DOWN' )
RegisterCommand('vrp:down', function()
if menu_state.opened then
SendNUIMessage({ act = "event", event = "DOWN" })
tvRP.playSound("NAV_UP_DOWN","HUD_FRONTEND_DEFAULT_SOUNDSET")
end
end, false)
RegisterKeyMapping ( 'vrp:left' , 'Esquerda' , 'keyboard' , 'LEFT' )
RegisterCommand('vrp:left', function()
if menu_state.opened then
SendNUIMessage({ act = "event", event = "LEFT" })
tvRP.playSound("NAV_LEFT_RIGHT","HUD_FRONTEND_DEFAULT_SOUNDSET")
end
end, false)
RegisterKeyMapping ( 'vrp:right' , 'Direita' , 'keyboard' , 'RIGHT' )
RegisterCommand('vrp:right', function()
if menu_state.opened then
SendNUIMessage({ act = "event", event = "RIGHT" })
tvRP.playSound("NAV_LEFT_RIGHT","HUD_FRONTEND_DEFAULT_SOUNDSET")
end
end, false)
RegisterKeyMapping ( 'vrp:select' , 'Selecionar' , 'keyboard' , 'RETURN' )
RegisterCommand('vrp:select', function()
if menu_state.opened then
SendNUIMessage({ act = "event", event = "SELECT" })
tvRP.playSound("SELECT","HUD_FRONTEND_DEFAULT_SOUNDSET")
end
end, false)
RegisterKeyMapping ( 'vrp:cancel' , 'Cancelar' , 'keyboard' , 'BACK' )
RegisterCommand('vrp:cancel', function()
SendNUIMessage({ act = "event", event = "CANCEL" })
end, false)
--[ ]-----------------------------------------------------------------------------
RegisterKeyMapping ( 'vrp:anim01' , '[A] Cruzar os braços' , 'keyboard' , 'F1' )
RegisterCommand('vrp:anim01', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
if IsEntityPlayingAnim(ped,"anim@heists@heist_corona@single_team","single_team_loop_boss",3) then
tvRP.DeletarObjeto()
else
tvRP.playAnim(true,{{"anim@heists@heist_corona@single_team","single_team_loop_boss"}},true)
end
end
end, false)
RegisterKeyMapping ( 'vrp:anim02' , '[A] Aguardar' , 'keyboard' , 'F2' )
RegisterCommand('vrp:anim02', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
if IsEntityPlayingAnim(ped,"mini@strip_club@idles@bouncer@base","base",3) then
tvRP.DeletarObjeto()
else
tvRP.playAnim(true,{{"mini@strip_club@idles@bouncer@base","base"}},true)
end
end
end, false)
RegisterKeyMapping ( 'vrp:anim03' , '[A] Dedo do meio' , 'keyboard' , 'F3' )
RegisterCommand('vrp:anim03', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
if IsEntityPlayingAnim(ped,"anim@mp_player_intupperfinger","idle_a_fp",3) then
tvRP.DeletarObjeto()
else
tvRP.playAnim(true,{{"anim@mp_player_intupperfinger","idle_a_fp"}},true)
end
end
end, false)
RegisterKeyMapping ( 'vrp:anim05' , '[A] Puto' , 'keyboard' , 'F5' )
RegisterCommand('vrp:anim05', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
tvRP.playAnim(true,{{"misscarsteal4@actor","actor_berating_loop"}},false)
end
end, false)
RegisterKeyMapping ( 'vrp:cancelAnims' , 'Cancelar animações' , 'keyboard' , 'F6' )
RegisterCommand('vrp:cancelAnims', function()
local ped = PlayerPedId()
if cooldown < 1 then
cooldown = 20
if GetEntityHealth(ped) > 101 then
if not menu_state.opened and not cancelando then
tvRP.DeletarObjeto()
ClearPedTasks(ped)
end
end
end
end, false)
RegisterKeyMapping ( 'vrp:anim10' , '[A] Mãos na cabeça' , 'keyboard' , 'F10' )
RegisterCommand('vrp:anim10', function()
local ped = PlayerPedId()
if GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
if IsEntityPlayingAnim(ped,"random@arrests@busted","idle_a",3) then
tvRP.DeletarObjeto()
else
tvRP.DeletarObjeto()
tvRP.playAnim(true,{{"random@arrests@busted","idle_a"}},true)
end
end
end, false)
RegisterKeyMapping ( 'vrp:animX' , '[A] Levantar as mãos' , 'keyboard' , 'X' )
RegisterCommand('vrp:animX', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_celular and not cancelando then
SetCurrentPedWeapon(ped,GetHashKey("WEAPON_UNARMED"),true)
if IsEntityPlayingAnim(ped,"random@mugging3","handsup_standing_base",3) then
tvRP.DeletarObjeto()
else
tvRP.playAnim(true,{{"random@mugging3","handsup_standing_base"}},true)
end
end
end, false)
RegisterKeyMapping ( 'vrp:vehicleZ' , '[V] Ligar motor' , 'keyboard' , 'Z' )
RegisterCommand('vrp:vehicleZ', function()
local ped = PlayerPedId()
if IsPedInAnyVehicle(ped) then
local vehicle = GetVehiclePedIsIn(ped,false)
if GetPedInVehicleSeat(vehicle,-1) == ped then
tvRP.DeletarObjeto()
local running = Citizen.InvokeNative(0xAE31E7DF9B5B132E,vehicle)
SetVehicleEngineOn(vehicle,not running,true,true)
if running then
SetVehicleUndriveable(vehicle,true)
else
SetVehicleUndriveable(vehicle,false)
end
end
end
end, false)
RegisterKeyMapping ( 'vrp:animB' , '[A] Apontar o dedo' , 'keyboard' , 'B' )
RegisterCommand('vrp:animB', function()
local ped = PlayerPedId()
if GetEntityHealth(ped) > 101 and not menu_celular and not cancelando then
tvRP.CarregarAnim("anim@mp_point")
if not apontar then
SetPedCurrentWeaponVisible(ped,0,1,1,1)
SetPedConfigFlag(ped,36,1)
Citizen.InvokeNative(0x2D537BA194896636,ped,"task_mp_pointing",0.5,0,"anim@mp_point",24)
apontar = true
else
Citizen.InvokeNative(0xD01015C7316AE176,ped,"Stop")
if not IsPedInjured(ped) then
ClearPedSecondaryTask(ped)
end
if not IsPedInAnyVehicle(ped) then
SetPedCurrentWeaponVisible(ped,1,1,1,1)
end
SetPedConfigFlag(ped,36,0)
ClearPedSecondaryTask(ped)
apontar = false
end
end
end, false)
RegisterKeyMapping ( 'vrp:animp3' , '[A] Beleza' , 'keyboard' , '3' )
RegisterCommand('vrp:animp3', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
tvRP.playAnim(true,{{"anim@mp_player_intincarthumbs_upbodhi@ps@","enter"}},false)
end
end, false)
RegisterKeyMapping ( 'vrp:animp4' , '[A] Saudação' , 'keyboard' , '4' )
RegisterCommand('vrp:animp4', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
tvRP.playAnim(true,{{"anim@mp_player_intcelebrationmale@salute","salute"}},false)
end
end, false)
RegisterKeyMapping ( 'vrp:animp5' , '[A] Assobiar' , 'keyboard' , '5' )
RegisterCommand('vrp:animp5', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
tvRP.playAnim(true,{{"rcmnigel1c","hailing_whistle_waive_a"}},false)
end
end, false)
RegisterKeyMapping ( 'vrp:animp6' , '[A] Vergonha!' , 'keyboard' , '6' )
RegisterCommand('vrp:animp6', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) and GetEntityHealth(ped) > 101 and not menu_state.opened and not menu_celular and not cancelando then
tvRP.playAnim(true,{{"anim@mp_player_intcelebrationmale@face_palm","face_palm"}},false)
end
end, false)
RegisterKeyMapping ( 'vrp:ctrl' , '[A] Agachar' , 'keyboard' , 'LCONTROL' )
RegisterCommand('vrp:ctrl', function()
local ped = PlayerPedId()
if not IsPedInAnyVehicle(ped) then
RequestAnimSet("move_ped_crouched")
RequestAnimSet("move_ped_crouched_strafing")
if IsDisabledControlJustPressed(0,36) then
if agachar then
ResetPedStrafeClipset(ped)
ResetPedMovementClipset(ped,0.25)
agachar = false
else
SetPedStrafeClipset(ped,"move_ped_crouched_strafing")
SetPedMovementClipset(ped,"move_ped_crouched",0.25)
agachar = true
end
end
end
end, false)
--[ SYNCCLEAN ]--------------------------------------------------------------------------------------------------------------------------
RegisterNetEvent("syncclean")
AddEventHandler("syncclean",function(index)
if NetworkDoesNetworkIdExist(index) then
local v = NetToVeh(index)
if DoesEntityExist(v) then
if IsEntityAVehicle(v) then
SetVehicleDirtLevel(v,0.0)
SetVehicleUndriveable(v,false)
tvRP.DeletarObjeto()
end
end
end
end)
--[ SYNCDELETEPED ]----------------------------------------------------------------------------------------------------------------------
RegisterNetEvent("syncdeleteped")
AddEventHandler("syncdeleteped",function(index)
if NetworkDoesNetworkIdExist(index) then
local v = NetToPed(index)
if DoesEntityExist(v) then
Citizen.InvokeNative(0xAD738C3085FE7E11,v,true,true)
SetPedAsNoLongerNeeded(Citizen.PointerValueIntInitialized(v))
DeletePed(v)
end
end
end) |
--Credit: BenikUI for this mod.
local KUI, E, L, V, P, G = unpack(select(2, ...))
local KUF = KUI:GetModule('KUIUnits');
local UF = E:GetModule('UnitFrames');
local pairs, select, random = pairs, select, random
-- GLOBALS: hooksecurefunc
local GetNumClasses = GetNumClasses
local GetClassInfo = GetClassInfo
local GetNumSpecializationsForClassID = GetNumSpecializationsForClassID
local GetSpecializationInfoForClassID = GetSpecializationInfoForClassID
local GetNumBattlefieldScores = GetNumBattlefieldScores
local GetBattlefieldScore = GetBattlefieldScore
local IsInInstance = IsInInstance
local GetUnitName = GetUnitName
local UnitGroupRolesAssigned = UnitGroupRolesAssigned
local UnitIsConnected = UnitIsConnected
local IsAddOnLoaded = IsAddOnLoaded
--Role icons
KUI.rolePaths = {
["ElvUI"] = {
TANK = [[Interface\AddOns\ElvUI\media\textures\tank]],
HEALER = [[Interface\AddOns\ElvUI\media\textures\healer]],
DAMAGER = [[Interface\AddOns\ElvUI\media\textures\dps]]
},
["SupervillainUI"] = {
TANK = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\svui-tank]],
HEALER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\svui-healer]],
DAMAGER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\svui-dps]]
},
["Blizzard"] = {
TANK = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\blizz-tank]],
HEALER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\blizz-healer]],
DAMAGER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\blizz-dps]]
},
["MiirGui"] = {
TANK = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\mg-tank]],
HEALER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\mg-healer]],
DAMAGER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\mg-dps]]
},
["Lyn"] = {
TANK = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\lyn-tank]],
HEALER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\lyn-healer]],
DAMAGER = [[Interface\AddOns\ElvUI_KlixUI\media\textures\roleIcons\lyn-dps]]
},
}
local specNameToRole = {}
for i = 1, GetNumClasses() do
local _, class, classID = GetClassInfo(i)
specNameToRole[class] = {}
for j = 1, GetNumSpecializationsForClassID(classID) do
local _, spec, _, _, _, role = GetSpecializationInfoForClassID(classID, j)
specNameToRole[class][spec] = role
end
end
local function GetBattleFieldIndexFromUnitName(name)
local nameFromIndex
for index = 1, GetNumBattlefieldScores() do
nameFromIndex = GetBattlefieldScore(index)
if nameFromIndex == name then
return index
end
end
return nil
end
function KUF:UpdateRoleIcon()
local lfdrole = self.GroupRoleIndicator
if not self.db then return; end
local db = self.db.roleIcon;
if (not db) or (db and not db.enable) then
lfdrole:Hide()
return
end
local isInstance, instanceType = IsInInstance()
local role
if isInstance and instanceType == "pvp" then
local name = GetUnitName(self.unit, true)
local index = GetBattleFieldIndexFromUnitName(name)
if index then
local _, _, _, _, _, _, _, _, classToken, _, _, _, _, _, _, talentSpec = GetBattlefieldScore(index)
if classToken and talentSpec then
role = specNameToRole[classToken][talentSpec]
else
role = UnitGroupRolesAssigned(self.unit) --Fallback
end
else
role = UnitGroupRolesAssigned(self.unit) --Fallback
end
else
role = UnitGroupRolesAssigned(self.unit)
if self.isForced and role == 'NONE' then
local rnd = random(1, 3)
role = rnd == 1 and "TANK" or (rnd == 2 and "HEALER" or (rnd == 3 and "DAMAGER"))
end
end
if (self.isForced or UnitIsConnected(self.unit)) and ((role == "DAMAGER" and db.damager) or (role == "HEALER" and db.healer) or (role == "TANK" and db.tank)) then
lfdrole:SetTexture(KUI.rolePaths[E.db.KlixUI.unitframes.icons.role][role])
lfdrole:Show()
lfdrole:Show()
else
lfdrole:Hide()
end
end
local function SetRoleIcons()
for _, header in pairs(UF.headers) do
local name = header.groupName
for i = 1, header:GetNumChildren() do
local group = select(i, header:GetChildren())
for j = 1, group:GetNumChildren() do
local unitbutton = select(j, group:GetChildren())
if unitbutton.GroupRoleIndicator and unitbutton.GroupRoleIndicator.Override then
unitbutton.GroupRoleIndicator.Override = KUF.UpdateRoleIcon
unitbutton:UnregisterEvent("UNIT_CONNECTION")
unitbutton:RegisterEvent("UNIT_CONNECTION", KUF.UpdateRoleIcon)
end
end
end
end
UF:UpdateAllHeaders()
end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function(self, event)
self:UnregisterEvent(event)
SetRoleIcons()
end) |
local sti = require "libs.sti.sti"
local map
function love.load()
map = sti("assets/mapas/mapa.lua")
leer_mapa()
crear_capas()
end
function love.draw()
map:draw()
end
function love.update(dt)
map:update(dt)
end
function leer_mapa()
for _, layer in ipairs(map.layers) do
if layer.type=="tilelayer" then
get_tile(layer)
elseif layer.type=="objectgroup" then
get_objects(layer)
end
end
map:removeLayer("Borrador")
end
function get_objects(objectlayer)
for _, obj in pairs(objectlayer.objects) do
if obj.name then
if obj.name == "Player" then
end
end
end
end
function get_tile(layer)
local lista_paredes = {}
for y=1, layer.height,1 do
for x=1, layer.width,1 do
local tile = layer.data[y][x]
if tile then
if tile.properties.collidable then
local ox,oy = (x-1),(y-1)
local t = {x=ox*32,y=oy*32,w=32,h=32}
table.insert(lista_paredes,t)
end
end
end
end
end
function crear_capas()
local Balas_layers = map:addCustomLayer("Balas",3)
local Enemigos_layers = map:addCustomLayer("Enemigos",4)
local Jugador_layers = map:addCustomLayer("Jugadores",5)
--draw
Balas_layers.draw = function(obj)
end
Enemigos_layers.draw = function(obj)
end
Jugador_layers.draw = function(obj)
end
--update
Balas_layers.update = function(obj,dt)
end
Enemigos_layers.update = function(obj,dt)
end
Jugador_layers.update = function(obj,dt)
end
end
|
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local util = common.util
local getItemModel = require(util.getItemModel)
local renderer = {
id = "oneHandedWeapon"
}
function renderer:create()
local character = self.player.character or self.player.CharacterAdded:wait()
local weaponModel = getItemModel(self.itemId)
local rightHand = character:WaitForChild("RightHand")
local gripAttachment = weaponModel:FindFirstChild("grip")
assert(gripAttachment, "no grip for model: "..self.itemId)
local transparencyLock = Instance.new("BoolValue")
transparencyLock.Name = "TransparencyLock"
transparencyLock.Value = true
transparencyLock.Parent = weaponModel
local weld = Instance.new("ManualWeld")
weld.Part0 = weaponModel
weld.Part1 = rightHand
weld.C0 = gripAttachment.CFrame
weld.C1 = rightHand:WaitForChild("RightGripAttachment").CFrame
weaponModel.Parent = character
weaponModel.Anchored = false
weaponModel.CanCollide = false
weld.Parent = weaponModel
self.model = weaponModel
end
function renderer:destroy()
if self.model then
self.model:destroy()
end
end
return renderer |
function OnPlayerMoving( Player )
local LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName()]
-- The world probably was created by an external plugin. Lets load the settings.
if not LimitWorldWidth then
LoadWorldSettings(Player:GetWorld())
LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName()]
end
if LimitWorldWidth > 0 then
local World = Player:GetWorld()
local SpawnX = math.floor(World:GetSpawnX() / 16)
local SpawnZ = math.floor(World:GetSpawnZ() / 16)
local X = math.floor(Player:GetPosX() / 16)
local Z = math.floor(Player:GetPosZ() / 16)
if ( (SpawnX + LimitWorldWidth - 1) < X ) then
Player:TeleportToCoords(Player:GetPosX() - 1, Player:GetPosY(), Player:GetPosZ())
end
if ( (SpawnX - LimitWorldWidth + 1) > X ) then
Player:TeleportToCoords(Player:GetPosX() + 1, Player:GetPosY(), Player:GetPosZ())
end
if ( (SpawnZ + LimitWorldWidth - 1) < Z ) then
Player:TeleportToCoords(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() - 1)
end
if ( (SpawnZ - LimitWorldWidth + 1) > Z ) then
Player:TeleportToCoords(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() + 1)
end
end
end |
--
-- SelectBox Widget.
-- @copyright Jefferson Gonzalez
-- @license MIT
--
local common = require "core.common"
local style = require "core.style"
local Widget = require "widget"
local ListBox = require "widget.listbox"
---@class widget.selectbox : widget
---@field private list_container widget
---@field private list widget.listbox
---@field private selected integer
---@field private hover_text renderer.color
local SelectBox = Widget:extend()
---Constructor
---@param parent widget
---@param label string
function SelectBox:new(parent, label)
SelectBox.super.new(self, parent)
self.size.x = 200 + (style.padding.x * 2)
self.size.y = self.font:get_height() + (style.padding.y * 2)
self.list_container = Widget()
self.list_container:set_size(
self.size.x - self.list_container.border.width,
150
)
self.list_container.border.color = style.caret
self.list = ListBox(self.list_container)
self.list.border.width = 0
self.list:enable_expand(true)
self.selected = 0
local list_on_row_click = self.list.on_row_click
self.list.on_row_click = function(this, idx, data)
list_on_row_click(this, idx, data)
if idx ~= 1 then
self.selected = idx-1
self:on_selected(idx-1, data)
end
self.list_container:hide()
end
self:set_label(label or "select")
end
---Set the text displayed when no item is selected.
---@param text string
function SelectBox:set_label(text)
SelectBox.super.set_label(self, "- "..text.." -")
if not self.list.rows[1] then
self.list:add_row({"- "..text.." -"})
else
self.list.rows[1][1] = "- "..text.." -"
end
end
---Add selectable option to the selectbox.
---@param text widget.styledtext|string
---@param data any
function SelectBox:add_option(text, data)
if type(text) == "string" then
self.list:add_row({ text }, data)
else
self.list:add_row(text, data)
end
end
---Check if a text is longer than the given maximum width and if larger returns
---a chopped version with the overflow_chars appended to it.
---@param text string
---@param max_width number
---@param font renderer.font Default is style.font
---@param overflow_chars string Default is '...'
---@return string chopped_text
---@return boolean overflows True if the text overflows
function SelectBox:text_overflow(text, max_width, font, overflow_chars)
font = font or style.font
overflow_chars = overflow_chars or "..."
local overflow = false
local overflow_chars_width = font:get_width(overflow_chars)
if font:get_width(text) > max_width then
overflow = true
for i = 1, #text do
local reduced_text = text:sub(1, #text - i)
if
font:get_width(reduced_text) + overflow_chars_width
<=
max_width
then
text = reduced_text .. "…"
break
end
end
end
return text, overflow
end
---Set the active option index.
---@param idx integer
function SelectBox:set_selected(idx)
if self.list.rows[idx+1] then
self.selected = idx
else
self.selected = 0
end
end
---Get the currently selected option index.
---@return integer
function SelectBox:get_selected()
return self.selected
end
---Get the currently selected option text.
---@return string|nil
function SelectBox:get_selected_text()
if self.selected > 0 then
return self.list:get_row_text(self.selected + 1)
end
return nil
end
---Get the currently selected option associated data.
---@return any|nil
function SelectBox:get_selected_data()
if self.selected > 0 then
return self.list:get_row_data(self.selected + 1)
end
return nil
end
---Repositions the listbox container according to the selectbox position
---and available screensize.
function SelectBox:reposition_container()
local y1 = self.position.y + self:get_height()
local y2 = self.position.y - self.list:get_height()
local w, h = system.get_window_size()
if y1 + self.list:get_height() <= h then
self.list_container:set_position(
self.position.x,
y1
)
else
self.list_container:set_position(
self.position.x,
y2
)
end
self.list_container.size.x = self.size.x
end
--
-- Events
--
---Overwrite to listen to on_selected events.
---@param item_idx integer
---@param item_data widget.listbox.row
function SelectBox:on_selected(item_idx, item_data) end
function SelectBox:on_mouse_enter(...)
SelectBox.super.on_mouse_enter(self, ...)
self.hover_text = style.accent
end
function SelectBox:on_mouse_leave(...)
SelectBox.super.on_mouse_leave(self, ...)
self.hover_text = nil
end
function SelectBox:on_click(button, x, y)
SelectBox.super.on_click(self, button, x, y)
if button == "left" then
self:reposition_container()
self.list_container:toggle_visible()
self.list:resize_to_parent()
end
end
function SelectBox:update()
if not SelectBox.super.update(self) then return end
local font = self.font or style.font
self.size.y = font:get_height() + style.padding.y * 2
if
self.list_container.visible
and
self.list_container.position.y ~= self.position.y + self:get_height()
then
self:reposition_container()
end
end
function SelectBox:draw()
if not SelectBox.super.draw(self) then return end
local font = self.font or style.font
local icon_width = style.icon_font:get_width("+")
local max_width = self.size.x
- icon_width
- (style.padding.x * 2) -- left/right paddings
- (style.padding.x / 2) -- space between icon and text
local item_text = self.selected == 0 and
self.label or self.list:get_row_text(self.selected+1)
local text = self:text_overflow(item_text, max_width, font)
-- draw label or selected item
common.draw_text(
font,
self.hover_text or self.foreground_color or style.text,
text,
"left",
self.position.x + style.padding.x,
self.position.y,
self.size.x - style.padding.x,
self.size.y
)
-- draw arrow down icon
common.draw_text(
style.icon_font,
self.hover_text or self.foreground_color or style.text,
"-",
"right",
self.position.x,
self.position.y,
self.size.x - style.padding.x,
self.size.y
)
end
return SelectBox
|
express = class() -- check expressjs.com doc
local socket = require "socket"
-- define methods functions on express
local methods = { "checkout", "copy", "delete", "get", "head", "lock", "merge", "mkactivity", "mkcol", "move", "m-search", "notify", "options", "patch", "post", "purge", "put", "report", "search", "subscribe", "trace", "unlock", "unsubscribe"}
for _,method in pairs(methods) do
local methodUpper = method:upper()
express[method] = function(self, path, callback)
self.callbacks[methodUpper][path] = callback
end
end
function express.getIp() -- because getsockname doesn't work directly, this bypass it
local sock = socket.udp()
sock:setpeername("192.168.0.1", "9999")
local ip = sock:getsockname()
sock:close()
return ip
end
function express:init()--middleware)
self.connections = {} -- [port] = {sock=socket, co=coroutine}
self.callbacks = {} -- [method][pattern] = callback(request, response, next)
for _,method in pairs(methods) do
self.callbacks[method:upper()] = {}
end
self.allCallbacks = {} -- contains callbacks defined by app:all() (works with all requested methods)
self.backlog = 5 -- number of client waiting queued
self.timeout = 0 -- non-blocking accept
end
function express:update()
for port,connection in pairs(self.connections) do
coroutine.resume(connection.co)
end
end
function express:dispose() -- close all open ports
for port,_ in pairs(self.connections) do
self:close(port)
end
end
function express:close(port)
if not self.connections[port] then
error("can't close the not binded port "..port)
end
self.connections[port].sock:close()
self.connections[port] = nil
end
--function express:all(url, callback) end
--function express:disable(property) end
--function express:disabled(property) end
--function express:enable(property) end
--function express:enabled(property) end
--function express:engine() end
function express:listen(port, callback)
if self.connections[port] then
error("the port "..port.." is already binded...")
end
local sock = assert(socket.tcp())
assert(sock:bind("*", port))
sock:listen(self.backlog)
sock:settimeout(self.timeout)
local this = self
local co = coroutine.create(function()
while true do
local client, err = sock:accept()
if client then
client:settimeout(2) -- non blocking receive if request malformed
local msg, err = client:receive()
if not err then
this:receive(msg, client)
else
print("Error happened while getting the connection: "..err)
end
end
coroutine.yield()
end
end)
self.connections[port] = {sock=sock,co=co}
callback()
end
--function express:path() end
--function express:render() end
--function express:route(url) end
--function express:set(property, enabled) end
--function express:use(middleware) end
--function express:on(event, callback) end
local function match(path, pattern)
local ptrn = pattern:gsub(':[A-Za-z0-9_]+', '[A-Za-z0-9_]+')
return string.match(path, ptrn) == path
end
-- internal
function express:receive(msg, client)
local request = Request(msg, client)
local response = Response(client)
local t = self.callbacks[request.method]
local tAll = self.allCallbacks
local function nextCallback(k)
return function()
-- send callback for method request that match pattern
for pattern, callback in next, t, k do
if match(request.path, pattern) then
return callback(request:setPattern(pattern), response, nextCallback(pattern))
end
end
-- send callback for ALL request that match pattern
--[[for pattern, callback in next, tAll, k do
if match(request.path, pattern) then
return callback(request:setPattern(pattern), response, nextCallback(pattern))
end
end]]--
-- if nothing match, send 404
response:status(404):send('404 Not Found') -- @todo 404 template
end
end
nextCallback(nil)() -- first callback
end
|
function all_tests()
local res = {}
for _, x in ipairs(os.files("**.cc")) do
local item = {}
local s = path.filename(x)
table.insert(item, s:sub(1, #s - 3)) -- target
table.insert(item, path.relative(x, ".")) -- source
table.insert(res, item)
end
return res
end
for _, test in ipairs(all_tests()) do
target(test[1])
set_kind("binary")
set_default(true)
add_deps("libco")
add_defines("CODBG")
add_files(test[2])
end
|
local L = LibStub("AceLocale-3.0"):NewLocale("Auracle", "enUS", true, true)
L["ARENA"] = ARENA -- noun
L["AURAS"] = AURAS -- plural noun
L["BACKGROUND"] = EMBLEM_BACKGROUND -- noun
L["BATTLEGROUND"] = BATTLEGROUND -- noun
L["BORDER"] = EMBLEM_BORDER -- noun
L["COLOR"] = COLOR -- noun
L["DEFAULT"] = DEFAULT
L["DELETE"] = DELETE -- verb
L["DISPLAY"] = DISPLAY -- verb
L["FOCUS"] = FOCUS -- i.e. the "focus" unitid
L["FRIENDLY"] = FRIENDLY -- i.e. reacation type
L["HOSTILE"] = HOSTILE -- i.e. reacation type
L["ICON"] = EMBLEM_SYMBOL
L["NAME"] = NAME -- noun
L["NEUTRAL"] = FACTION_STANDING_LABEL4 -- i.e. reacation type
L["NONE"] = NONE -- adjective
L["PET"] = PET -- i.e. the "pet" unitid
L["PLAYER"] = PLAYER -- i.e. the "player" unitid
L["TARGET"] = TARGET -- i.e. the "target" unitid
-- Auracle.lua
L["LDB_MSG_DISABLED"] = "Disabled."
L["LDB_MSG_ENABLED"] = "Enabled."
L["LDB_STAT_ENABLED"] = "Auracle |cffffffff(|cff00ff00enabled|cffffffff)"
L["LDB_STAT_DISABLED"] = "Auracle |cffffffff(|cffff0000disabled|cffffffff)"
L["LDB_LEFTCLICK"] = "|cff7fffffLeft-click|cffffffff to toggle"
L["LDB_RIGHTCLICK"] = "|cff7fffffRight-click|cffffffff to open configuration"
L["HUMANOID"] = "Humanoid"
L["UNKNOWN_FORM"] = "(Unknown Stance/Form)"
L["ERR_REMOVE_LAST_WINDOW"] = "Can't remove the last window; disable the addon instead"
L["FMT_COPY_OF"] = "Copy of"
L["FMT_COPY_%d_OF"] = "Copy (%d) of"
L["CONFIGURE"] = "Configure" -- verb
L["DESC_CMD_CONFIGURE"] = "Open configuration panel"
L["ENABLE_ADDON"] = "Enable Auracle"
L["DISABLE_ADDON"] = "Disable Auracle"
L["GENERAL"] = "General" -- generic, basic, non-specific (not the military rank...)
L["ADDON_ENABLED"] = "Auracle Enabled"
L["WINDOWS_LOCKED"] = "Windows Locked"
L["DESC_OPT_WINDOWS_LOCKED"] = "When unlocked, windows may be moved by left-click-dragging"
L["WINDOW_STYLES"] = "Window Styles"
L["TRACKER_STYLES"] = "Tracker Styles"
L["WINDOWS"] = "Windows" -- plural noun (not the operating system...)
L["LIST_ADD_WINDOW"] = "|cff7fffff(Add Window...)"
L["ADD_WINDOW"] = "Add Window"
L["ABOUT"] = "About" -- as in "about the addon"
L["OPEN_CONFIGURATION"] = "Open Configuration"
-- WindowStyle.lua
L["STYLE"] = "Style" -- noun
L["COPY"] = "Copy" -- verb
L["ERR_RENAME_DEFAULT_STYLE"] = "You cannot rename the Default style"
L["ERR_NO_STYLE_NAME"] = "Every style needs a name"
L["ERR_DUP_STYLE_NAME"] = "Every style name must be unique"
L["WINDOW_OPACITY"] = "Window Opacity"
L["WINDOW_SCALE"] = "Window Scale"
L["SHOW"] = "Show" -- verb
L["TEXTURE"] = "Texture" -- noun
L["CORNER_SIZE"] = "Corner Size"
L["TILE_SIZE"] = "Tile Size"
L["DESC_OPT_TILE_SIZE"] = "0 to disable background tiling"
L["INSET_NOSCALE"] = "Don't scale inset"
L["DESC_OPT_INSET_NOSCALE"] = "Apply inset in pixels, by canceling out the effective scale"
L["INSET"] = "Inset" -- noun (gap between the inside edge of the border and the outside edge of the background image)
L["LAYOUT"] = "Layout" -- noun
L["LAYOUT_NOSCALE"] = "Don't scale padding and spacing"
L["DESC_OPT_LAYOUT_NOSCALE"] = "Apply padding and spacing in pixels, by canceling out the effective scale"
L["PADDING"] = "Padding" -- noun (gap between edge of background image and trackers)
L["DESC_OPT_WINDOW_PADDING"] = "The distance between trackers and the window border"
L["SPACING"] = "Spacing" -- noun (gap between each tracker)
L["DESC_OPT_WINDOW_SPACING"] = "The distance between each tracker"
L["TRACKER_SIZE"] = "Tracker Size"
-- TrackerStyle.lua
L["BORDER_NOSCALE"] = "Don't scale border"
L["DESC_OPT_BORDER_NOSCALE"] = "Apply border size in pixels, by canceling out the effective scale"
L["OPT_MISSING_SHOW"] = "Show when Missing"
L["OPT_MISSING_SIZE"] = "Size when Missing"
L["OPT_MISSING_COLOR"] = "Color when Missing"
L["OPT_OTHERS_SHOW"] = "Show when Other's"
L["OPT_OTHERS_SIZE"] = "Size when Other's"
L["OPT_OTHERS_COLOR"] = "Color when Other's"
L["OPT_MINE_SHOW"] = "Show when Mine"
L["OPT_MINE_SIZE"] = "Size when Mine"
L["OPT_MINE_COLOR"] = "Color when Mine"
L["ZOOM_ICON"] = "Zoom Icon"
L["OPT_MISSING_GRAY"] = "Gray when Missing"
L["OPT_MISSING_TINT"] = "Tint when Missing"
L["OPT_OTHERS_GRAY"] = "Gray when Other's"
L["OPT_OTHERS_TINT"] = "Tint when Other's"
L["OPT_MINE_GRAY"] = "Gray when Mine"
L["OPT_MINE_TINT"] = "Tint when Mine"
L["SPIRAL"] = "Spiral" -- noun (as in, "the cooldown spiral")
L["OPT_NOCC"] = "Block External Cooldown"
L["DESC_OPT_NOCC"] = "Prevent CooldownCount and OmniCC from adding timer text to the cooldown"
L["TEXT"] = "Text" -- noun
L["FONT"] = "Font" -- noun
L["OUTLINE"] = "Outline" -- noun
L["THIN"] = "Thin" -- adjective
L["THICK"] = "Thick" -- adjective
L["RELATIVE_SIZE"] = "Relative Size" -- i.e. a multiple of the tracker's size
L["DESC_OPT_RELATIVE_STATIC_SIZE"] = "Effective font size is (RelativeSize * TrackerSize) + StaticSize"
L["STATIC_SIZE"] = "Static Size" -- i.e. a base size, no matter the tracker's size
L["OPT_SMOOTH_COLORS"] = "Smooth-Fade Colors"
L["DESC_OPT_SMOOTH_COLORS"] = "When coloring based on time, fade smoothly between each marker"
--L["OPT_SMOOTH_RATE"] = "Smooth-Fade Rate"
--L["DESC_OPT_SMOOTH_RATE"] = "The interval at which the smooth-fade color will be updated; lower settings may impact performance"]
L["RELATIVE_COLORS"] = "Relative Colors" -- i.e. colors to use when coloring by some relative value (which will be 0-100%)
L["OPT_OTHERS_20%"] = "Other's 0-20%"
L["OPT_MINE_20%"] = "Mine 0-20%"
L["OPT_OTHERS_40%"] = "Other's 20-40%"
L["OPT_MINE_40%"] = "Mine 20-40%"
L["OPT_OTHERS_60%"] = "Other's 40-60%"
L["OPT_MINE_60%"] = "Mine 40-60%"
L["OPT_OTHERS_80%"] = "Other's 60-80%"
L["OPT_MINE_80%"] = "Mine 60-80%"
L["OPT_OTHERS_100%"] = "Other's 80-100%"
L["OPT_MINE_100%"] = "Mine 80-100%"
L["COLORS_BY_TIME"] = "Colors by Time" -- i.e. colors to use when coloring by time ranges
L["OPT_OTHERS_5S"] = "Other's 0-5s"
L["OPT_MINE_5S"] = "Mine 0-5s"
L["OPT_OTHERS_10S"] = "Other's 5-10s"
L["OPT_MINE_10S"] = "Mine 5-10s"
L["OPT_OTHERS_20S"] = "Other's 10-20s"
L["OPT_MINE_20S"] = "Mine 10-20s"
L["OPT_OTHERS_30S"] = "Other's 20-30s"
L["OPT_MINE_30S"] = "Mine 20-30s"
L["OPT_OTHERS_XS"] = "Other's 30s+"
L["OPT_MINE_XS"] = "Mine 30s+"
-- Window.lua
L["BUFFS_BY_TYPE"] = "Buffs by Type"
L["STATS"] = "Stats"
L["PRESET_BUFF_PCTSTATS"] = "+% Stats"
L["PRESET_BUFF_MASTERY"] = "+ Mastery"
L["PRESET_BUFF_STA"] = "+% Stamina"
L["PRESET_BUFF_MANA"] = "+ Mana"
L["PRESET_BUFF_PCTDMG"] = "+% Damage"
L["PRESET_BUFF_CRIT"] = "+% Crit"
L["PRESET_BUFF_HASTE"] = "+% Haste"
L["PRESET_BUFF_VERSATILITY"] = "+% Versatility"
L["PRESET_BUFF_MULTISTRIKE"] = "+% Multistrike"
L["PRESET_BUFF_BIGHASTE"] = "++ Haste"
L["PHYSICAL"] = "Physical"
L["PRESET_BUFF_PCTAP"] = "+% Attack Power"
L["CASTER"] = "Caster"
L["PRESET_BUFF_PCTSP"] = "+% Spell Power"
L["PRESET_BUFF_PUSHBACK"] = "- Spell Pushback"
L["PRESET_BUFF_BIGMANAREGEN"] = "++ Mana Regen"
L["PRESET_BUFF_MANAREGEN"] = "+ Mana Regen"
L["DEFENSE"] = "Defense"
L["PRESET_BUFF_BIGPCTDMGTAKEN"] = "--% Damage Taken"
L["PRESET_BUFF_PCTDMGTAKEN"] = "-% Damage Taken"
L["PRESET_BUFF_ARMOR"] = "+ Armor"
--L["PRESET_BUFF_PCTARMOR"] = "+% Armor"
--L["PRESET_BUFF_PCTHEALTAKEN"] = "+% Healing Taken"
L["TACTICAL"] = "Tactical"
L["IMMUNE"] = "Immune"
L["PHYSICAL_IMMUNE"] = "Physical Immune"
L["MAGICAL_IMMUNE"] = "Magical Immune"
L["SHIELDED"] = "Shielded"
L["FAST"] = "Fast"
L["DEBUFFS_BY_TYPE"] = "Debuffs by Type"
L["DPS"] = "DPS"
L["PRESET_DEBUFF_PCTDMG"] = "-% Damage"
--L["PRESET_DEBUFF_AP"] = "- Attack Power"
L["PRESET_DEBUFF_M_HASTE"] = "- Melee Haste"
--L["PRESET_DEBUFF_MR_HIT"] = "- Melee/Ranged Hit"
--L["PRESET_DEBUFF_R_HASTE"] = "- Ranged Haste"
L["PRESET_DEBUFF_S_HASTE"] = "- Spell Haste"
L["PHYSICAL_TANK"] = "Physical Tank"
--L["PRESET_DEBUFF_BIGARMOR"] = "-- Armor"
L["PRESET_DEBUFF_ARMOR"] = "-% Armor"
L["PRESET_DEBUFF_PCTPHYSDMGTAKEN"] = "+% Physical Damage Taken"
L["PRESET_DEBUFF_PCTBLEEDDMGTAKEN"] = "+% Bleed Damage Taken"
--L["PRESET_DEBUFF_CRITTAKEN"] = "+ Crit Taken"
L["CASTER_TANK"] = "Caster Tank"
--L["PRESET_DEBUFF_RESISTS"] = "- Resists"
L["PRESET_DEBUFF_PCTSPELLDMGTAKEN"] = "+% Spell Damage Taken"
--L["PRESET_DEBUFF_PCTDISEASEDMGTAKEN"] = "+% Disease Damage Taken"
--L["PRESET_DEBUFF_SPELLHITTAKEN"] = "+ Spell Hit Taken"
L["PRESET_DEBUFF_SPELLCRITTAKEN"] = "+ Spell Crit Taken"
L["PRESET_DEBUFF_TAUNTED"] = "Taunted"
L["PRESET_DEBUFF_PCTHEALTAKEN"] = "-% Healing Taken"
L["DISARM"] = "Disarm"
L["SILENCE"] = "Silence"
L["SPELL_LOCKOUT"] = "Spell Lockout"
L["STUN"] = "Stun"
L["FEAR"] = "Fear"
L["INCAPACITATE"] = "Incapacitate"
L["DISORIENT"] = "Disorient"
L["ROOT"] = "Root"
L["SLOW"] = "Slow"
L["WINDOW"] = "Window" -- noun
L["LABEL"] = "Label" -- noun
L["REMOVE_WINDOW"] = "Remove Window"
L["WATCH_UNIT"] = "Watch Unit"
L["TARGETTARGET"] = "Target's Target" -- i.e. the "targettarget" unitid
L["PETTARGET"] = "Pet's Target" -- i.e. the "pettarget" unitid
L["FOCUSTARGET"] = "Focus' Target" -- i.e. the "focustarget" unitid
L["WINDOW_STYLE"] = "Window Style"
L["VISIBILITY"] = "Visibility" -- noun
L["OPT_SPEC_SHOW"] = "Show while using talent group:"
L["PRIMARY_TALENTS"] = "Primary Talents"
L["SECONDARY_TALENTS"] = "Secondary Talents"
L["OPT_INSTANCE_SHOW"] = "Show while in instance:"
L["NO_INSTANCE"] = "No Instance"
L["PARTY_INSTANCE"] = "Party Instance"
L["RAID_INSTANCE"] = "Raid Instance"
L["SCENARIO_INSTANCE"] = "Scenario"
L["OPT_GROUP_SHOW"] = "Show while in group:"
L["NONE_SOLO"] = "None (Solo)" -- i.e. ungrouped
L["PARTY"] = "Party" -- noun (i.e. in a 5-person group)
L["RAID_GROUP"] = "Raid Group" -- noun (i.e. in a 40-person group)
L["OPT_COMBAT_SHOW"] = "Show while in combat:"
L["NOT_IN_COMBAT"] = "Not in Combat"
L["IN_COMBAT"] = "In Combat"
L["OPT_FORM_SHOW"] = "Show while in stance/form:"
L["OPT_UNITMISSING_SHOW"] = "Show when unit is missing"
L["OPT_UNITREACT_SHOW"] = "Show while unit's reaction is:"
L["OPT_UNITTYPE_SHOW"] = "Show while unit type is:"
L["BOSS"] = "Boss" -- i.e. npc unit type
L["RARE_ELITE_NPC"] = "Rare Elite NPC" -- i.e. npc unit type
L["ELITE_NPC"] = "Elite NPC" -- i.e. npc unit type
L["RARE_NPC"] = "Rare NPC" -- i.e. npc unit type
L["NPC"] = "NPC" -- i.e. npc unit type
L["GRAY_NPC"] = "Gray NPC" -- i.e. npc unit type
L["TRACKERS_LOCKED"] = "Trackers Locked"
L["DESC_OPT_TRACKERS_LOCKED"] = "When unlocked, trackers may be rearranged by left-click-dragging"
L["TRACKERS_PER_ROW"] = "Trackers per Row"
L["LIST_ADD_TRACKER"] = "|cff7fffff(Add Tracker...)"
L["ADD_BLANK_TRACKER"] = "Add Blank Tracker"
L["OPT_ASSUME_TALENTED"] = "Assume talented"
L["DESC_OPT_ASSUME_TALENTED"] = "When checked, preset trackers added below will include auras that only have the specified effect when talented."
-- Tracker.lua
L["NEW_TRACKER"] = "New Tracker"
L["_HOURS_ABBREV_"] = "h"
L["_MINUTES_ABBREV_"] = "m"
L["_SECONDS_ABBREV_"] = "s"
L["TRACKER"] = "Tracker" -- noun
L["REMOVE_TRACKER"] = "Remove Tracker"
L["MOVE_TRACKER_UP"] = "Move Up"
L["MOVE_TRACKER_DOWN"] = "Move Down"
L["AURA_TYPE"] = "Aura Type"
L["BUFFS"] = "Buffs" -- plural noun
L["DEBUFFS"] = "Debuffs" -- plural noun
L["WEAPON_BUFFS"] = "Weapon Buffs"
L["TRACKER_STYLE"] = "Tracker Style"
L["DESC_OPT_AURAS"] = "One buff or debuff name or SpellID per line (if the line is numeric, it will be interpreted as a SpellID; if that ID is invalid, the line will be ignored)"
L["OPT_OTHERS_TRACK"] = "Track Other's"
L["OPT_MINE_TRACK"] = "Track Mine"
L["OPT_MAINHAND_TRACK"] = "Track Mainhand"
L["OPT_OFFHAND_TRACK"] = "Track Offhand"
L["AUTOUPDATE"] = "Autoupdate" -- verb
L["DESC_OPT_AUTOUPDATE"] = "Update icon texture whenever a new aura activates the tracker"
L["STACKS"] = "Stacks" -- plural noun
L["TIME_LEFT"] = "Time Left"
L["DIRECTION"] = "Direction"
L["DRAIN_CLOCKWISE"] = "Drain Clockwise"
L["FILL_CLOCKWISE"] = "Fill Clockwise"
L["MAXIMUM_DURATION"] = "Maximum Duration"
L["AUTOUPDATE_MODE"] = "Autoupdate Mode"
L["UPDATE_ALWAYS"] = "Update Always"
L["UPDATE_UPWARDS"] = "Update Upwards"
L["STATIC"] = "Static" -- unchanging
L["VALUE"] = "Value"
L["MAXIMUM_STACKS"] = "Maximum Stacks"
L["COLOR_BY"] = "Color By"
L["ABSOLUTE_DURATION"] = "Absolute Duration" -- i.e. use the "colors by time"
L["RELATIVE_DURATION"] = "Relative Duration" -- i.e. use the "relative colors" for time / maxtime
L["RELATIVE_STACKS"] = "Relative Stacks" -- i.e. use the "relative colors" for stacks / maxstacks
L["TOOLTIP"] = "Tooltip" -- noun
L["OPT_MISSING_DISPLAY"] = "Display when Missing"
L["SUMMARY"] = "Summary" -- noun
L["NOTHING"] = "Nothing" -- noun
L["OPT_OTHERS_DISPLAY"] = "Display when Other's"
L["AURAS_TOOLTIP"] = "Aura's Tooltip"
L["OPT_MINE_DISPLAY"] = "Display when Mine"
L["WARN_TOOLTIP_BLOCKS_MOUSE"] = "Note that enabling any tooltip will cause the tracker to block mouse clicks even while locked. If the tracker is near the middle of the screen, this can interfere with your camera and movement control."
|
--- Handler implementing latest RethinkDB handshake.
-- @module rethinkdb.internal.current_handshake
-- @author Adam Grandquist
-- @license Apache
-- @copyright Adam Grandquist 2016
local crypto = require('crypto')
local errors = require'rethinkdb.errors'
local ltn12 = require('ltn12')
local pbkdf2 = require'rethinkdb.internal.pbkdf'
local protect = require'rethinkdb.internal.protect'
--- Helper for bitwise operations.
local function prequire(mod_name, ...)
if not mod_name then return end
local success, bits = pcall(require, mod_name)
if success then
return bits
end
return prequire(...)
end
local bits = prequire(
'rethinkdb.internal.bits53', 'bit32', 'bit', 'rethinkdb.internal.bits51')
local bor = bits.bor
local bxor = bits.bxor
local rand_bytes = crypto.rand.bytes
local unpack = _G.unpack or table.unpack -- luacheck: read globals table.unpack
local function bxor256(u, t)
local res = {}
for i=1, math.max(string.len(u), string.len(t)) do
res[i] = bxor(string.byte(u, i) or 0, string.byte(t, i) or 0)
end
return string.char(unpack(res))
end
local function compare_digest(a, b)
local result
if string.len(a) == string.len(b) then
result = 0
end
if string.len(a) ~= string.len(b) then
result = 1
end
for i=1, math.max(string.len(a), string.len(b)) do
result = bor(result, bxor(string.byte(a, i) or 0, string.byte(b, i) or 0))
end
return result ~= 0
end
local function maybe_auth_err(r, err, append)
if 10 <= err.error_code and err.error_code <= 20 then
return nil, errors.ReQLAuthError(r, err.error .. append)
end
return nil, errors.ReQLDriverError(r, err.error .. append)
end
local function current_handshake(r, socket_inst, auth_key, user)
local function send(data)
local success, err = ltn12.pump.all(ltn12.source.string(data), socket_inst.sink)
if not success then
socket_inst.close()
return nil, err
end
return true
end
local buffer = ''
local function sink(chunk, src_err)
if src_err then
return nil, src_err
end
if chunk == nil then
return nil, 'closed'
end
buffer = buffer .. chunk
return true
end
local function encode(object)
local json, err = protect(r.encode, object)
if not json then
return nil, err
end
return send(table.concat{json, '\0'})
end
local function get_message()
local i = string.find(buffer, '\0')
while not i do
local success, err = ltn12.pump.step(socket_inst.source(1), sink)
if not success then
return nil, err
end
i = string.find(buffer, '\0')
end
local message = string.sub(buffer, 1, i - 1)
buffer = string.sub(buffer, i + 1)
return message
end
local success, err = send'\195\189\194\52'
if not success then
return nil, errors.ReQLDriverError(r, err .. ': sending magic number')
end
-- Now we have to wait for a response from the server
-- acknowledging the connection
-- this will be a null terminated json document on success
-- or a null terminated error string on failure
local message
message, err = get_message()
if not message then
return nil, errors.ReQLDriverError(r, err .. ': in first response')
end
local response = protect(r.decode, message)
if not response then
return nil, errors.ReQLDriverError(r, message .. ': in first response')
end
if not response.success then
return maybe_auth_err(r, response, ': in first response')
end
local nonce = r.b64(rand_bytes(18))
local client_first_message_bare = 'n=' .. user .. ',r=' .. nonce
-- send the second client message
-- {
-- "protocol_version": <number>,
-- "authentication_method": <method>,
-- "authentication": "n,,n=<user>,r=<nonce>"
-- }
success, err = encode{
protocol_version = response.min_protocol_version,
authentication_method = 'SCRAM-SHA-256',
authentication = 'n,,' .. client_first_message_bare
}
if not success then
return nil, errors.ReQLDriverError(r, err .. ': encoding SCRAM challenge')
end
-- wait for the second server challenge
-- this is always a json document
-- {
-- "success": <bool>,
-- "authentication": "r=<nonce><server_nonce>,s=<salt>,i=<iteration>"
-- }
message, err = get_message()
if not message then
return nil, errors.ReQLDriverError(r, err .. ': in second response')
end
response, err = protect(r.decode, message)
if not response then
return nil, errors.ReQLDriverError(r, err .. ': decoding second response')
end
if not response.success then
return maybe_auth_err(r, response, ': in second response')
end
-- the authentication property will need to be retained
local authentication = {}
local server_first_message = response.authentication
local response_authentication = server_first_message .. ','
for k, v in string.gmatch(response_authentication, '([rsi])=(.-),') do
authentication[k] = v
end
if string.sub(authentication.r, 1, string.len(nonce)) ~= nonce then
return nil, errors.ReQLDriverError(r, 'Invalid nonce')
end
authentication.i = tonumber(authentication.i)
local client_final_message_without_proof = 'c=biws,r=' .. authentication.r
local salt = r.unb64(authentication.s)
-- SaltedPassword := Hi(Normalize(password), salt, i)
local salted_password, str_err = pbkdf2('sha256', auth_key, salt, authentication.i, 32)
if not salted_password then
return nil, errors.ReQLDriverError(r, str_err)
end
-- ClientKey := HMAC(SaltedPassword, "Client Key")
local client_key = crypto.hmac.digest('sha256', 'Client Key', salted_password, true)
-- StoredKey := H(ClientKey)
local stored_key = crypto.digest('sha256', client_key, true)
-- AuthMessage := client-first-message-bare + "," +
-- server-first-message + "," +
-- client-final-message-without-proof
local auth_message = table.concat({
client_first_message_bare,
server_first_message,
client_final_message_without_proof}, ',')
-- ClientSignature := HMAC(StoredKey, AuthMessage)
local client_signature = crypto.hmac.digest('sha256', auth_message, stored_key, true)
local client_proof = bxor256(client_key, client_signature)
-- ServerKey := HMAC(SaltedPassword, "Server Key")
local server_key = crypto.hmac.digest('sha256', 'Server Key', salted_password, true)
-- ServerSignature := HMAC(ServerKey, AuthMessage)
local server_signature = crypto.hmac.digest('sha256', auth_message, server_key, true)
-- send the third client message
-- {
-- "authentication": "c=biws,r=<nonce><server_nonce>,p=<proof>"
-- }
success, err = encode{
authentication =
table.concat{client_final_message_without_proof, ',p=', r.b64(client_proof)}
}
if not success then
return nil, errors.ReQLDriverError(r, err .. ': encoding SCRAM response')
end
-- wait for the third server challenge
-- this is always a json document
-- {
-- "success": <bool>,
-- "authentication": "v=<server_signature>"
-- }
message, err = get_message()
if not message then
return nil, errors.ReQLDriverError(r, err .. ': in third response')
end
response, err = protect(r.decode, message)
if not response then
return nil, errors.ReQLDriverError(r, err .. ': decoding third response')
end
if not response.success then
return maybe_auth_err(r, response, ': in third response')
end
response_authentication = response.authentication .. ','
for k, v in string.gmatch(response_authentication, '([v])=(.-),') do
authentication[k] = v
end
if not authentication.v then
return nil, errors.ReQLDriverError(
r,
message .. ': missing server signature'
)
end
if compare_digest(authentication.v, server_signature) then
return true
end
return nil, errors.ReQLAuthError(r, 'invalid server signature')
end
return current_handshake
|
object_draft_schematic_bio_engineer_bio_component_bio_component_armor_adenine = object_draft_schematic_bio_engineer_bio_component_shared_bio_component_armor_adenine:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_bio_component_bio_component_armor_adenine, "object/draft_schematic/bio_engineer/bio_component/bio_component_armor_adenine.iff")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.