Moved ida and other to misc/restuff

This commit is contained in:
L 2023-01-31 01:41:43 +01:00
parent e86f177777
commit e9ca67df78
76 changed files with 901246 additions and 901246 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,180 @@
= CGame file list
== Source files
- /root/gcc-2.95.2/gcc/./frame.c
- /root/gcc-2.95.2/gcc/./libgcc2.c
- /source/cgame/cg_beam.cpp
- /source/cgame/cg_commands.cpp
- /source/cgame/cg_consolecmds.c
- /source/cgame/cg_drawtools.cpp
- /source/cgame/cg_ents.c
- /source/cgame/cg_lightstyles.cpp
- /source/cgame/cg_main.c
- /source/cgame/cg_marks.c
- /source/cgame/cg_modelanim.c
- /source/cgame/cg_nature.cpp
- /source/cgame/cg_parsemsg.cpp
- /source/cgame/cg_player.cpp
- /source/cgame/cg_playerstate.c
- /source/cgame/cg_predict.c
- /source/cgame/cg_scoreboard.cpp
- /source/cgame/cg_servercmds.c
- /source/cgame/cg_snapshot.c
- /source/cgame/cg_sound.cpp
- /source/cgame/cg_specialfx.cpp
- /source/cgame/cg_swipe.cpp
- /source/cgame/cg_tempmodels.cpp
- /source/cgame/cg_testemitter.cpp
- /source/cgame/cg_ui.cpp
- /source/cgame/cg_vehicle.cpp
- /source/cgame/cg_view.c
- /source/cgame/cg_viewmodelanim.c
- /source/cgame/cg_volumetricsmoke.cpp
- /source/fgame/bg_pmove.c
- /source/qcommon/assertive.c
- /source/qcommon/class.cpp
- /source/qcommon/con_set.cpp
- /source/qcommon/lightclass.cpp
- /source/qcommon/listener.cpp
- /source/qcommon/mathlib.c
- /source/qcommon/q_math.c
- /source/qcommon/q_mathsys.c
- /source/qcommon/q_shared.c
- /source/qcommon/script.cpp
- /source/qcommon/str.cpp
- /source/script/scriptexception.cpp
- /source/script/scriptvariable.cpp
- /source/unix/unix_assert.c
- /source/win32/win_bounds.cpp
== Header files
- ../include/ansidecl.h
- ../include/getopt.h
- /config/dbxelf.h
- /config/i386/att.h
- /config/i386/i386.h
- /config/i386/linux.h
- /config/i386/perform.h
- /config/i386/unix.h
- /config/i386/xm-i386.h
- /config/linux.h
- /config/svr4.h
- /cp/tinfo.h
- /defaults.h
- /dwarf2.h
- /eh-common.h
- /frame.h
- /gansidecl.h
- /gthr-single.h
- /gthr.h
- /include/stdarg.h
- /include/stddef.h
- /machmode.h
- /source/cgame/cg_commands.h
- /source/cgame/cg_local.h
- /source/cgame/cg_parsemsg.h
- /source/cgame/cg_public.h
- /source/cgame/cg_specialfx.h
- /source/cgame/tr_types.h
- /source/fgame/bg_public.h
- /source/fgame/const_str.h
- /source/profile/profile.h
- /source/qcommon/alias.h
- /source/qcommon/assertive.h
- /source/qcommon/class.h
- /source/qcommon/cl_no_ui.h
- /source/qcommon/cm_public.h
- /source/qcommon/container.h
- /source/qcommon/con_arrayset.h
- /source/qcommon/con_map.h
- /source/qcommon/con_set.h
- /source/qcommon/lightclass.h
- /source/qcommon/linklist.h
- /source/qcommon/listener.h
- /source/qcommon/mathlib.h
- /source/qcommon/mem_blockalloc.h
- /source/qcommon/msg.h
- /source/qcommon/qcommon.h
- /source/qcommon/qfiles.h
- /source/qcommon/q_shared.h
- /source/qcommon/script.h
- /source/qcommon/short3.h
- /source/qcommon/str.h
- /source/qcommon/surfaceflags.h
- /source/qcommon/symbol_declasher.h
- /source/qcommon/tiki.h
- /source/qcommon/tiki_script.h
- /source/qcommon/vector.h
- /source/qcommon/warn4.h
- /source/script/scriptexception.h
- /source/script/scriptopcodes.h
- /source/script/scriptvariable.h
- /source/skeletor/skeletor_model_file_format.h
- /source/skeletor/SkelMat3.h
- /source/skeletor/SkelMat4.h
- /source/skeletor/SkelQuat.h
- /source/skeletor/SkelVec3.h
- /source/skeletor/SkelVec4.h
- /source/system/appmem.h
- /source/tiki/tiki_shared.h
- /source/ui/keycodes.h
- /tconfig.h
- /tm.h
- /usr/include/alloca.h
- /usr/include/asm/param.h
- /usr/include/asm/sigcontext.h
- /usr/include/assert.h
- /usr/include/bits/confname.h
- /usr/include/bits/endian.h
- /usr/include/bits/huge_val.h
- /usr/include/bits/local_lim.h
- /usr/include/bits/mathcalls.h
- /usr/include/bits/mathdef.h
- /usr/include/bits/mathinline.h
- /usr/include/bits/posix1_lim.h
- /usr/include/bits/posix2_lim.h
- /usr/include/bits/posix_opt.h
- /usr/include/bits/select.h
- /usr/include/bits/sigaction.h
- /usr/include/bits/sigcontext.h
- /usr/include/bits/siginfo.h
- /usr/include/bits/signum.h
- /usr/include/bits/sigset.h
- /usr/include/bits/sigstack.h
- /usr/include/bits/stdio.h
- /usr/include/bits/stdio_lim.h
- /usr/include/bits/string.h
- /usr/include/bits/string2.h
- /usr/include/bits/time.h
- /usr/include/bits/types.h
- /usr/include/ctype.h
- /usr/include/endian.h
- /usr/include/features.h
- /usr/include/getopt.h
- /usr/include/gnu/stubs.h
- /usr/include/libio.h
- /usr/include/limits.h
- /usr/include/linux/limits.h
- /usr/include/linux/param.h
- /usr/include/malloc.h
- /usr/include/math.h
- /usr/include/memory.h
- /usr/include/signal.h
- /usr/include/stdio.h
- /usr/include/stdlib.h
- /usr/include/string.h
- /usr/include/sys/cdefs.h
- /usr/include/sys/param.h
- /usr/include/sys/select.h
- /usr/include/sys/sysmacros.h
- /usr/include/sys/types.h
- /usr/include/time.h
- /usr/include/unistd.h
- /usr/include/_G_config.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/float.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/limits.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdarg.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stddef.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/syslimits.h

View file

@ -0,0 +1,11 @@
comp( x < y )
comp( x == y )
comp & 0x100: x < y
comp & 0x4100: x <= y
( HIBYTE( comp ) & 0x45 ) != 1: x >= y
( HIBYTE( comp ) & 0x45 ) == 1: x < y
( HIBYTE( comp ) & 0x45 - 1 ) < 0x40: x <= y
( HIBYTE( comp ) & 0x45 - 1 ) >= 0x40: x > y
( HIBYTE( comp ) & 0x45 ) == 0x40: x == y
( HIBYTE( comp ) & 0x45 ) != 0x40: x != y

542147
misc/restuff/ida/dump/fgame.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,372 @@
= Game file list
== Source files
- /root/gcc-2.95.2/gcc/./frame.c
- /root/gcc-2.95.2/gcc/./libgcc2.c
- /source/fgame/abstractscript.cpp
- /source/fgame/actor.cpp
- /source/fgame/actorenemy.cpp
- /source/fgame/actorpath.cpp
- /source/fgame/actor_aim.cpp
- /source/fgame/actor_alarm.cpp
- /source/fgame/actor_anim.cpp
- /source/fgame/actor_animapi.cpp
- /source/fgame/actor_animcurious.cpp
- /source/fgame/actor_balcony.cpp
- /source/fgame/actor_cover.cpp
- /source/fgame/actor_curious.cpp
- /source/fgame/actor_disguise_common.cpp
- /source/fgame/actor_disguise_officer.cpp
- /source/fgame/actor_disguise_rover.cpp
- /source/fgame/actor_disguise_salute.cpp
- /source/fgame/actor_disguise_sentry.cpp
- /source/fgame/actor_dog.cpp
- /source/fgame/actor_grenade.cpp
- /source/fgame/actor_idle.cpp
- /source/fgame/actor_killed.cpp
- /source/fgame/actor_machinegunner.cpp
- /source/fgame/actor_noclip.cpp
- /source/fgame/actor_pain.cpp
- /source/fgame/actor_patrol.cpp
- /source/fgame/actor_runner.cpp
- /source/fgame/actor_turret.cpp
- /source/fgame/actor_weaponless.cpp
- /source/fgame/ammo.cpp
- /source/fgame/animate.cpp
- /source/fgame/animationevent.cpp
- /source/fgame/archive.cpp
- /source/fgame/armor.cpp
- /source/fgame/barrels.cpp
- /source/fgame/beam.cpp
- /source/fgame/bg_pmove.c
- /source/fgame/body.cpp
- /source/fgame/bspline.cpp
- /source/fgame/camera.cpp
- /source/fgame/characterstate.cpp
- /source/fgame/class.cpp
- /source/fgame/consoleevent.cpp
- /source/fgame/con_timer.cpp
- /source/fgame/crates.cpp
- /source/fgame/debuglines.cpp
- /source/fgame/decals.cpp
- /source/fgame/dm_manager.cpp
- /source/fgame/doors.cpp
- /source/fgame/earthquake.cpp
- /source/fgame/effectentity.cpp
- /source/fgame/entity.cpp
- /source/fgame/explosion.cpp
- /source/fgame/flamethrower.cpp
- /source/fgame/game.cpp
- /source/fgame/gamecmds.cpp
- /source/fgame/gamecvars.cpp
- /source/fgame/gamescript.cpp
- /source/fgame/gibs.cpp
- /source/fgame/grenadehint.cpp
- /source/fgame/g_main.cpp
- /source/fgame/g_mmove.cpp
- /source/fgame/g_phys.cpp
- /source/fgame/g_session.cpp
- /source/fgame/g_spawn.cpp
- /source/fgame/g_utils.cpp
- /source/fgame/g_vmove.cpp
- /source/fgame/health.cpp
- /source/fgame/inventoryitem.cpp
- /source/fgame/ipfilter.cpp
- /source/fgame/item.cpp
- /source/fgame/level.cpp
- /source/fgame/light.cpp
- /source/fgame/lightstyleclass.cpp
- /source/fgame/listener.cpp
- /source/fgame/lodthing.cpp
- /source/fgame/misc.cpp
- /source/fgame/movegrid.cpp
- /source/fgame/mover.cpp
- /source/fgame/nature.cpp
- /source/fgame/navigate.cpp
- /source/fgame/object.cpp
- /source/fgame/parm.cpp
- /source/fgame/player.cpp
- /source/fgame/playerstart.cpp
- /source/fgame/player_animation.cpp
- /source/fgame/player_combat.cpp
- /source/fgame/player_conditionals.cpp
- /source/fgame/player_util.cpp
- /source/fgame/portal.cpp
- /source/fgame/scriptmaster.cpp
- /source/fgame/scriptslave.cpp
- /source/fgame/scriptthread.cpp
- /source/fgame/scriptthreadlabel.cpp
- /source/fgame/scriptvariable.cpp
- /source/fgame/scriptvm.cpp
- /source/fgame/sentient.cpp
- /source/fgame/sentient_combat.cpp
- /source/fgame/simpleactor.cpp
- /source/fgame/simpleentity.cpp
- /source/fgame/soundman.cpp
- /source/fgame/spawners.cpp
- /source/fgame/specialfx.cpp
- /source/fgame/statescript.cpp
- /source/fgame/trigger.cpp
- /source/fgame/vehicle.cpp
- /source/fgame/VehicleCollisionEntity.cpp
- /source/fgame/VehicleHalfTrack.cpp
- /source/fgame/VehicleSlot.cpp
- /source/fgame/VehicleSoundEntity.cpp
- /source/fgame/VehicleTank.cpp
- /source/fgame/vehicleturret.cpp
- /source/fgame/VehicleWheelsX2.cpp
- /source/fgame/VehicleWheelsX4.cpp
- /source/fgame/viewthing.cpp
- /source/fgame/weapon.cpp
- /source/fgame/weapturret.cpp
- /source/fgame/weaputils.cpp
- /source/fgame/windows.cpp
- /source/fgame/worldspawn.cpp
- /source/parser/lex.yy.c
- /source/parser/lex_source.txt
- /source/parser/parsetree.cpp
- /source/parser/y.tab.c
- /source/parser/yacc_source.txt
- /source/qcommon/assertive.c
- /source/qcommon/calltrace.cpp
- /source/qcommon/class.cpp
- /source/qcommon/con_set.cpp
- /source/qcommon/con_timer.cpp
- /source/qcommon/lightclass.cpp
- /source/qcommon/listener.cpp
- /source/qcommon/lz77.cpp
- /source/qcommon/mathlib.c
- /source/qcommon/mem_tempalloc.cpp
- /source/qcommon/q_math.c
- /source/qcommon/q_mathsys.c
- /source/qcommon/q_shared.c
- /source/qcommon/script.cpp
- /source/qcommon/str.cpp
- /source/script/scriptclass.cpp
- /source/script/scriptcompiler.cpp
- /source/script/scriptexception.cpp
- /source/script/scriptopcodes.cpp
- /source/script/scriptvariable.cpp
- /source/script/scriptvm.cpp
- /source/unix/unix_assert.c
- /source/win32/win_bounds.cpp
== Header files
- ../include/ansidecl.h
- ../include/getopt.h
- /config/dbxelf.h
- /config/i386/att.h
- /config/i386/i386.h
- /config/i386/linux.h
- /config/i386/perform.h
- /config/i386/unix.h
- /config/i386/xm-i386.h
- /config/linux.h
- /config/svr4.h
- /cp/tinfo.h
- /defaults.h
- /dwarf2.h
- /eh-common.h
- /frame.h
- /gansidecl.h
- /gthr-single.h
- /gthr.h
- /include/stdarg.h
- /include/stddef.h
- /machmode.h
- /source/cgame/cg_parsemsg.h
- /source/cgame/cg_public.h
- /source/cgame/tr_types.h
- /source/fgame/abstractscript.h
- /source/fgame/actor.h
- /source/fgame/actorenemy.h
- /source/fgame/actorpath.h
- /source/fgame/ammo.h
- /source/fgame/animate.h
- /source/fgame/animationevent.h
- /source/fgame/archive.h
- /source/fgame/armor.h
- /source/fgame/barrels.h
- /source/fgame/beam.h
- /source/fgame/bg_local.h
- /source/fgame/bg_public.h
- /source/fgame/body.h
- /source/fgame/bspline.h
- /source/fgame/camera.h
- /source/fgame/characterstate.h
- /source/fgame/consoleevent.h
- /source/fgame/const_str.h
- /source/fgame/debuglines.h
- /source/fgame/decals.h
- /source/fgame/dm_manager.h
- /source/fgame/doors.h
- /source/fgame/earthquake.h
- /source/fgame/effectentity.h
- /source/fgame/entity.h
- /source/fgame/explosion.h
- /source/fgame/flamethrower.h
- /source/fgame/game.h
- /source/fgame/gamecmds.h
- /source/fgame/gamecvars.h
- /source/fgame/gamescript.h
- /source/fgame/gibs.h
- /source/fgame/grenadehint.h
- /source/fgame/g_local.h
- /source/fgame/g_main.h
- /source/fgame/g_mpublic.h
- /source/fgame/g_phys.h
- /source/fgame/g_public.h
- /source/fgame/g_session.h
- /source/fgame/g_spawn.h
- /source/fgame/g_utils.h
- /source/fgame/health.h
- /source/fgame/inventoryitem.h
- /source/fgame/ipfilter.h
- /source/fgame/item.h
- /source/fgame/level.h
- /source/fgame/light.h
- /source/fgame/lightstyleclass.h
- /source/fgame/lodthing.h
- /source/fgame/misc.h
- /source/fgame/movegrid.h
- /source/fgame/mover.h
- /source/fgame/nature.h
- /source/fgame/navigate.h
- /source/fgame/object.h
- /source/fgame/parm.h
- /source/fgame/player.h
- /source/fgame/playerstart.h
- /source/fgame/portal.h
- /source/fgame/scriptlabel.h
- /source/fgame/scriptmaster.h
- /source/fgame/scriptslave.h
- /source/fgame/scriptthread.h
- /source/fgame/scriptthreadlabel.h
- /source/fgame/sentient.h
- /source/fgame/simpleactor.h
- /source/fgame/simpleentity.h
- /source/fgame/soundman.h
- /source/fgame/spawners.h
- /source/fgame/specialfx.h
- /source/fgame/spline.h
- /source/fgame/statescript.h
- /source/fgame/trigger.h
- /source/fgame/vehicle.h
- /source/fgame/VehicleCollisionEntity.h
- /source/fgame/VehicleSlot.h
- /source/fgame/VehicleSoundEntity.h
- /source/fgame/vehicleturret.h
- /source/fgame/viewthing.h
- /source/fgame/weapon.h
- /source/fgame/weapturret.h
- /source/fgame/weaputils.h
- /source/fgame/worldspawn.h
- /source/parser/parser.h
- /source/parser/parsetree.h
- /source/profile/profile.h
- /source/qcommon/alias.h
- /source/qcommon/assertive.h
- /source/qcommon/calltrace.h
- /source/qcommon/class.h
- /source/qcommon/cm_public.h
- /source/qcommon/container.h
- /source/qcommon/con_arrayset.h
- /source/qcommon/con_map.h
- /source/qcommon/con_set.h
- /source/qcommon/con_timer.h
- /source/qcommon/lightclass.h
- /source/qcommon/linklist.h
- /source/qcommon/listener.h
- /source/qcommon/lz77.h
- /source/qcommon/mathlib.h
- /source/qcommon/mem_blockalloc.h
- /source/qcommon/mem_tempalloc.h
- /source/qcommon/msg.h
- /source/qcommon/qcommon.h
- /source/qcommon/qfiles.h
- /source/qcommon/q_shared.h
- /source/qcommon/script.h
- /source/qcommon/short3.h
- /source/qcommon/str.h
- /source/qcommon/surfaceflags.h
- /source/qcommon/symbol_declasher.h
- /source/qcommon/tiki.h
- /source/qcommon/tiki_script.h
- /source/qcommon/vector.h
- /source/qcommon/warn4.h
- /source/script/scriptclass.h
- /source/script/scriptcompiler.h
- /source/script/scriptexception.h
- /source/script/scriptopcodes.h
- /source/script/scriptvariable.h
- /source/script/scriptvm.h
- /source/skeletor/skeletor_animation_file_format.h
- /source/skeletor/skeletor_fgame_exports.h
- /source/skeletor/skeletor_model_file_format.h
- /source/skeletor/SkelMat3.h
- /source/skeletor/SkelMat4.h
- /source/skeletor/SkelQuat.h
- /source/skeletor/SkelVec3.h
- /source/skeletor/SkelVec4.h
- /source/system/appmem.h
- /source/tiki/tiki_shared.h
- /tconfig.h
- /tm.h
- /usr/include/alloca.h
- /usr/include/asm/param.h
- /usr/include/asm/sigcontext.h
- /usr/include/assert.h
- /usr/include/bits/confname.h
- /usr/include/bits/endian.h
- /usr/include/bits/huge_val.h
- /usr/include/bits/local_lim.h
- /usr/include/bits/mathcalls.h
- /usr/include/bits/mathdef.h
- /usr/include/bits/mathinline.h
- /usr/include/bits/posix1_lim.h
- /usr/include/bits/posix2_lim.h
- /usr/include/bits/posix_opt.h
- /usr/include/bits/select.h
- /usr/include/bits/sigaction.h
- /usr/include/bits/sigcontext.h
- /usr/include/bits/siginfo.h
- /usr/include/bits/signum.h
- /usr/include/bits/sigset.h
- /usr/include/bits/sigstack.h
- /usr/include/bits/stdio.h
- /usr/include/bits/stdio_lim.h
- /usr/include/bits/string.h
- /usr/include/bits/string2.h
- /usr/include/bits/time.h
- /usr/include/bits/types.h
- /usr/include/ctype.h
- /usr/include/endian.h
- /usr/include/features.h
- /usr/include/getopt.h
- /usr/include/gnu/stubs.h
- /usr/include/libio.h
- /usr/include/limits.h
- /usr/include/linux/limits.h
- /usr/include/linux/param.h
- /usr/include/malloc.h
- /usr/include/math.h
- /usr/include/memory.h
- /usr/include/signal.h
- /usr/include/stdio.h
- /usr/include/stdlib.h
- /usr/include/string.h
- /usr/include/sys/cdefs.h
- /usr/include/sys/param.h
- /usr/include/sys/select.h
- /usr/include/sys/sysmacros.h
- /usr/include/sys/types.h
- /usr/include/time.h
- /usr/include/unistd.h
- /usr/include/_G_config.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/float.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/limits.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdarg.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stddef.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/syslimits.h

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,548 @@
= Engine file list
== Source files
- /source/client/cl_cgame.c
- /source/client/cl_cin.c
- /source/client/cl_consolecmds.cpp
- /source/client/cl_input.c
- /source/client/cl_inv.cpp
- /source/client/cl_invrender.cpp
- /source/client/cl_keys.c
- /source/client/cl_main.c
- /source/client/cl_net_chan.c
- /source/client/cl_parse.c
- /source/client/cl_scrn.c
- /source/client/cl_ui.cpp
- /source/client/cl_uibind.cpp
- /source/client/cl_uidmbox.cpp
- /source/client/cl_uifilepicker.cpp
- /source/client/cl_uigmbox.cpp
- /source/client/cl_uilangame.cpp
- /source/client/cl_uiloadsave.cpp
- /source/client/cl_uimaprunner.cpp
- /source/client/cl_uiminicon.cpp
- /source/client/cl_uimpmappicker.cpp
- /source/client/cl_uiplayermodelpicker.cpp
- /source/client/cl_uiserverlist.cpp
- /source/client/cl_uisoundpicker.cpp
- /source/client/cl_uistd.cpp
- /source/client/cl_uiview3d.cpp
- /source/client/skel_imports.cpp
- /source/client/snd_dma_new.cpp
- /source/client/snd_info.cpp
- /source/client/snd_mem.c
- /source/client/snd_openal_new.cpp
- /source/client/tiki_imports.cpp
- /source/client/usignal.cpp
- /source/ff/cl_ff.c
- /source/ff/snd_ff.c
- /source/gamespy/darray.c
- /source/gamespy/gserver.c
- /source/gamespy/gserverlist.c
- /source/gamespy/gutil.c
- /source/gamespy/hashtable.c
- /source/gamespy/md5c.c
- /source/gamespy/nonport.c
- /source/gamespy/sv_gamespy.c
- /source/gamespy/sv_gqueryreporting.c
- /source/jpeg-6/jcapimin.c
- /source/jpeg-6/jccoefct.c
- /source/jpeg-6/jccolor.c
- /source/jpeg-6/jcdctmgr.c
- /source/jpeg-6/jchuff.c
- /source/jpeg-6/jcinit.c
- /source/jpeg-6/jcmainct.c
- /source/jpeg-6/jcmarker.c
- /source/jpeg-6/jcmaster.c
- /source/jpeg-6/jcomapi.c
- /source/jpeg-6/jcparam.c
- /source/jpeg-6/jcphuff.c
- /source/jpeg-6/jcprepct.c
- /source/jpeg-6/jcsample.c
- /source/jpeg-6/jctrans.c
- /source/jpeg-6/jdapimin.c
- /source/jpeg-6/jdapistd.c
- /source/jpeg-6/jdatadst.c
- /source/jpeg-6/jdatasrc.c
- /source/jpeg-6/jdcoefct.c
- /source/jpeg-6/jdcolor.c
- /source/jpeg-6/jddctmgr.c
- /source/jpeg-6/jdhuff.c
- /source/jpeg-6/jdinput.c
- /source/jpeg-6/jdmainct.c
- /source/jpeg-6/jdmarker.c
- /source/jpeg-6/jdmaster.c
- /source/jpeg-6/jdpostct.c
- /source/jpeg-6/jdsample.c
- /source/jpeg-6/jdtrans.c
- /source/jpeg-6/jerror.c
- /source/jpeg-6/jfdctflt.c
- /source/jpeg-6/jidctflt.c
- /source/jpeg-6/jmemmgr.c
- /source/jpeg-6/jmemnobs.c
- /source/jpeg-6/jutils.c
- /source/profile/profile_main.c
- /source/qcommon/alias.c
- /source/qcommon/assertive.c
- /source/qcommon/circstr.c
- /source/qcommon/class.cpp
- /source/qcommon/cm_fencemask.c
- /source/qcommon/cm_load.c
- /source/qcommon/cm_patch.c
- /source/qcommon/cm_polylib.c
- /source/qcommon/cm_terrain.c
- /source/qcommon/cm_test.c
- /source/qcommon/cm_trace.c
- /source/qcommon/cm_trace_lbd.cpp
- /source/qcommon/cmd.c
- /source/qcommon/common.c
- /source/qcommon/con_set.cpp
- /source/qcommon/crc.c
- /source/qcommon/cvar.c
- /source/qcommon/files.c
- /source/qcommon/huffman.c
- /source/qcommon/lightclass.cpp
- /source/qcommon/listener.cpp
- /source/qcommon/lz77.cpp
- /source/qcommon/mathlib.c
- /source/qcommon/md4.c
- /source/qcommon/mem_tempalloc.cpp
- /source/qcommon/memory.c
- /source/qcommon/msg.c
- /source/qcommon/net_chan.c
- /source/qcommon/q_math.c
- /source/qcommon/q_mathsys.c
- /source/qcommon/q_shared.c
- /source/qcommon/script.cpp
- /source/qcommon/str.cpp
- /source/qcommon/tiki_main.cpp
- /source/qcommon/tiki_script.cpp
- /source/qcommon/unzip.c
- /source/renderer/surfaceflags.c
- /source/renderer/tr_backend.c
- /source/renderer/tr_bsp.c
- /source/renderer/tr_cmds.c
- /source/renderer/tr_curve.c
- /source/renderer/tr_draw.c
- /source/renderer/tr_flares.c
- /source/renderer/tr_font.cpp
- /source/renderer/tr_ghost.cpp
- /source/renderer/tr_image.c
- /source/renderer/tr_init.c
- /source/renderer/tr_light.c
- /source/renderer/tr_main.c
- /source/renderer/tr_marks.c
- /source/renderer/tr_marks_permanent.c
- /source/renderer/tr_model.cpp
- /source/renderer/tr_noise.c
- /source/renderer/tr_scene.c
- /source/renderer/tr_shade.c
- /source/renderer/tr_shade_calc.c
- /source/renderer/tr_shader.c
- /source/renderer/tr_shadows.c
- /source/renderer/tr_sky.c
- /source/renderer/tr_sky_portal.cpp
- /source/renderer/tr_sphere_shade.cpp
- /source/renderer/tr_sprite.c
- /source/renderer/tr_staticmodels.cpp
- /source/renderer/tr_sun_flare.cpp
- /source/renderer/tr_surface.c
- /source/renderer/tr_swipe.cpp
- /source/renderer/tr_terrain.c
- /source/renderer/tr_util.cpp
- /source/renderer/tr_vis.cpp
- /source/renderer/tr_world.c
- /source/script/scriptexception.cpp
- /source/script/scriptvariable.cpp
- /source/server/sv_ccmds.c
- /source/server/sv_client.c
- /source/server/sv_game.c
- /source/server/sv_init.c
- /source/server/sv_main.c
- /source/server/sv_net_chan.c
- /source/server/sv_snapshot.c
- /source/server/sv_snd.c
- /source/server/sv_world.c
- /source/skeletor/SkelMat3.cpp
- /source/skeletor/SkelMat4.cpp
- /source/skeletor/bonetable.cpp
- /source/skeletor/skeletor.cpp
- /source/skeletor/skeletor_loadanimation.cpp
- /source/skeletor/skeletor_model_files.cpp
- /source/skeletor/skeletor_saveanimation.cpp
- /source/skeletor/skeletor_utilities.cpp
- /source/skeletor/skeletorbones.cpp
- /source/skeletor/skelquat.cpp
- /source/skeletor/tokenizer.cpp
- /source/tiki/tiki_anim.cpp
- /source/tiki/tiki_cache.cpp
- /source/tiki/tiki_commands.cpp
- /source/tiki/tiki_files.cpp
- /source/tiki/tiki_frame.cpp
- /source/tiki/tiki_mesh.cpp
- /source/tiki/tiki_parse.cpp
- /source/tiki/tiki_skel.cpp
- /source/tiki/tiki_surface.cpp
- /source/tiki/tiki_switcher.cpp
- /source/tiki/tiki_tag.cpp
- /source/tiki/tiki_utility.cpp
- /source/uilib/console.cpp
- /source/uilib/ucolor.cpp
- /source/uilib/ui_init.cpp
- /source/uilib/uibind.cpp
- /source/uilib/uibindlist.cpp
- /source/uilib/uibutton.cpp
- /source/uilib/uicheckbox.cpp
- /source/uilib/uiconsole.cpp
- /source/uilib/uidialog.cpp
- /source/uilib/uifield.cpp
- /source/uilib/uifloatwnd.cpp
- /source/uilib/uifont.cpp
- /source/uilib/uiglobalgamelist.cpp
- /source/uilib/uihorizscroll.cpp
- /source/uilib/uilabel.cpp
- /source/uilib/uilangamelist.cpp
- /source/uilib/uilayout.cpp
- /source/uilib/uilist.cpp
- /source/uilib/uilistbox.cpp
- /source/uilib/uilistctrl.cpp
- /source/uilib/uimenu.cpp
- /source/uilib/uimledit.cpp
- /source/uilib/uinotepad.cpp
- /source/uilib/uipopupmenu.cpp
- /source/uilib/uipulldownmenu.cpp
- /source/uilib/uipulldownmenucontainer.cpp
- /source/uilib/uislider.cpp
- /source/uilib/uistatus.cpp
- /source/uilib/uivertscroll.cpp
- /source/uilib/uiwidget.cpp
- /source/uilib/uiwinman.cpp
- /source/unix/linux_general_extras.c
- /source/unix/linux_glimp_sdl.c
- /source/unix/linux_qgl.c
- /source/unix/unix_assert.c
- /source/unix/unix_main.c
- /source/unix/unix_net.c
- /source/unix/unix_shared.c
- /source/win32/win_bounds.cpp
- /source/win32/win_localization.cpp
== Header files
- ../include/features.h
- ../include/libc-symbols.h
- ../include/libintl.h
- ../include/locale.h
- ../include/sys/cdefs.h
- ../include/xlocale.h
- ../intl/libintl.h
- ../linuxthreads/sysdeps/pthread/bits/pthreadtypes.h
- ../locale/locale.h
- ../locale/xlocale.h
- ../misc/sys/cdefs.h
- ../sysdeps/unix/sysv/linux/bits/sched.h
- ../sysdeps/unix/sysv/linux/bits/types.h
- ../sysdeps/unix/sysv/linux/_G_config.h
- /source/cgame/cg_parsemsg.h
- /source/cgame/cg_public.h
- /source/cgame/tr_types.h
- /source/client/client.h
- /source/client/cl_inv.h
- /source/client/cl_invrender.h
- /source/client/cl_ui.h
- /source/client/cl_uibind.h
- /source/client/cl_uidmbox.h
- /source/client/cl_uifilepicker.h
- /source/client/cl_uigmbox.h
- /source/client/cl_uilangame.h
- /source/client/cl_uiloadsave.h
- /source/client/cl_uimaprunner.h
- /source/client/cl_uiminicon.h
- /source/client/cl_uimpmappicker.h
- /source/client/cl_uiplayermodelpicker.h
- /source/client/cl_uiserverlist.h
- /source/client/cl_uisoundpicker.h
- /source/client/cl_uistd.h
- /source/client/cl_uiview3d.h
- /source/client/keys.h
- /source/client/snd_local.h
- /source/client/snd_local_new.h
- /source/client/snd_miles.h
- /source/client/snd_openal_new.h
- /source/client/snd_public.h
- /source/client/usignal.h
- /source/fgame/bg_public.h
- /source/fgame/const_str.h
- /source/fgame/g_public.h
- /source/gamespy/darray.h
- /source/gamespy/goaceng.h
- /source/gamespy/gserver.h
- /source/gamespy/gserverlist.h
- /source/gamespy/gutil.h
- /source/gamespy/hashtable.h
- /source/gamespy/md5.h
- /source/gamespy/nonport.h
- /source/gamespy/sv_gqueryreporting.h
- /source/jpeg-6/jchuff.h
- /source/jpeg-6/jconfig.h
- /source/jpeg-6/jdct.h
- /source/jpeg-6/jdhuff.h
- /source/jpeg-6/jerror.h
- /source/jpeg-6/jinclude.h
- /source/jpeg-6/jmemsys.h
- /source/jpeg-6/jmorecfg.h
- /source/jpeg-6/jpegint.h
- /source/jpeg-6/jpeglib.h
- /source/jpeg-6/jversion.h
- /source/Launch/RunMode.h
- /source/profile/profile.h
- /source/qcommon/alias.h
- /source/qcommon/assertive.h
- /source/qcommon/circstr.h
- /source/qcommon/class.h
- /source/qcommon/cl_no_ui.h
- /source/qcommon/cm_local.h
- /source/qcommon/cm_patch.h
- /source/qcommon/cm_polylib.h
- /source/qcommon/cm_public.h
- /source/qcommon/cm_terrain.h
- /source/qcommon/container.h
- /source/qcommon/con_arrayset.h
- /source/qcommon/con_map.h
- /source/qcommon/con_set.h
- /source/qcommon/crc.h
- /source/qcommon/lightclass.h
- /source/qcommon/linklist.h
- /source/qcommon/listener.h
- /source/qcommon/lz77.h
- /source/qcommon/mathlib.h
- /source/qcommon/mem_blockalloc.h
- /source/qcommon/mem_tempalloc.h
- /source/qcommon/msg.h
- /source/qcommon/qcommon.h
- /source/qcommon/qfiles.h
- /source/qcommon/q_shared.h
- /source/qcommon/script.h
- /source/qcommon/short3.h
- /source/qcommon/str.h
- /source/qcommon/surfaceflags.h
- /source/qcommon/symbol_declasher.h
- /source/qcommon/tiki.h
- /source/qcommon/tiki_script.h
- /source/qcommon/unzip.h
- /source/qcommon/vector.h
- /source/qcommon/warn4.h
- /source/renderer/qgl.h
- /source/renderer/tr_ghost.h
- /source/renderer/tr_local.h
- /source/renderer/tr_public.h
- /source/renderer/tr_vis.h
- /source/script/scriptexception.h
- /source/script/scriptopcodes.h
- /source/script/scriptvariable.h
- /source/server/server.h
- /source/skeletor/skeletor.h
- /source/skeletor/skeletor_animation_file_format.h
- /source/skeletor/skeletor_fgame_exports.h
- /source/skeletor/skeletor_internal.h
- /source/skeletor/skeletor_model_file_format.h
- /source/skeletor/skeletor_name_lists.h
- /source/skeletor/skeletor_renderer_exports.h
- /source/skeletor/SkelMat3.h
- /source/skeletor/SkelMat4.h
- /source/skeletor/SkelQuat.h
- /source/skeletor/SkelVec3.h
- /source/skeletor/SkelVec4.h
- /source/skeletor/tokenizer.h
- /source/system/appmem.h
- /source/tiki/tiki_shared.h
- /source/ui/keycodes.h
- /source/uilib/console.h
- /source/uilib/editfield.h
- /source/uilib/keycodes.h
- /source/uilib/stack.h
- /source/uilib/ucolor.h
- /source/uilib/uibind.h
- /source/uilib/uibindlist.h
- /source/uilib/uibutton.h
- /source/uilib/uicheckbox.h
- /source/uilib/uicommon.h
- /source/uilib/uiconsole.h
- /source/uilib/uidialog.h
- /source/uilib/uifield.h
- /source/uilib/uifloatwnd.h
- /source/uilib/uifont.h
- /source/uilib/uiglobalgamelist.h
- /source/uilib/uihorizscroll.h
- /source/uilib/uilabel.h
- /source/uilib/uilangamelist.h
- /source/uilib/uilayout.h
- /source/uilib/uilist.h
- /source/uilib/uilistbox.h
- /source/uilib/uilistctrl.h
- /source/uilib/uimenu.h
- /source/uilib/uimledit.h
- /source/uilib/uinotepad.h
- /source/uilib/uipoint2d.h
- /source/uilib/uipopupmenu.h
- /source/uilib/uipulldownmenu.h
- /source/uilib/uipulldownmenucontainer.h
- /source/uilib/uirect2d.h
- /source/uilib/uisize2d.h
- /source/uilib/uislider.h
- /source/uilib/uistatus.h
- /source/uilib/uivertscroll.h
- /source/uilib/uiwidget.h
- /source/uilib/uiwinman.h
- /source/uilib/ui_extern.h
- /source/uilib/ui_local.h
- /source/uilib/ui_public.h
- /source/uilib/ulist.h
- /source/uilib/usignal.h
- /source/unix/unix_glw.h
- /source/win32/win_localization.h
- /usr/include/alloca.h
- /usr/include/arpa/inet.h
- /usr/include/asm/errno.h
- /usr/include/asm/ioctl.h
- /usr/include/asm/ioctls.h
- /usr/include/asm/param.h
- /usr/include/asm/sigcontext.h
- /usr/include/asm/socket.h
- /usr/include/asm/sockios.h
- /usr/include/assert.h
- /usr/include/bits/byteswap.h
- /usr/include/bits/confname.h
- /usr/include/bits/dirent.h
- /usr/include/bits/dlfcn.h
- /usr/include/bits/endian.h
- /usr/include/bits/errno.h
- /usr/include/bits/fcntl.h
- /usr/include/bits/huge_val.h
- /usr/include/bits/in.h
- /usr/include/bits/ioctl-types.h
- /usr/include/bits/ioctls.h
- /usr/include/bits/ipc.h
- /usr/include/bits/local_lim.h
- /usr/include/bits/mathcalls.h
- /usr/include/bits/mathdef.h
- /usr/include/bits/mathinline.h
- /usr/include/bits/mman.h
- /usr/include/bits/posix1_lim.h
- /usr/include/bits/posix2_lim.h
- /usr/include/bits/posix_opt.h
- /usr/include/bits/select.h
- /usr/include/bits/setjmp.h
- /usr/include/bits/shm.h
- /usr/include/bits/sigaction.h
- /usr/include/bits/sigcontext.h
- /usr/include/bits/siginfo.h
- /usr/include/bits/signum.h
- /usr/include/bits/sigset.h
- /usr/include/bits/sigstack.h
- /usr/include/bits/sockaddr.h
- /usr/include/bits/socket.h
- /usr/include/bits/stat.h
- /usr/include/bits/stdio.h
- /usr/include/bits/stdio_lim.h
- /usr/include/bits/string.h
- /usr/include/bits/string2.h
- /usr/include/bits/time.h
- /usr/include/bits/types.h
- /usr/include/bits/uio.h
- /usr/include/bits/waitflags.h
- /usr/include/bits/waitstatus.h
- /usr/include/ctype.h
- /usr/include/dirent.h
- /usr/include/dlfcn.h
- /usr/include/endian.h
- /usr/include/errno.h
- /usr/include/fcntl.h
- /usr/include/features.h
- /usr/include/fnmatch.h
- /usr/include/fpu_control.h
- /usr/include/getopt.h
- /usr/include/gnu/stubs.h
- /usr/include/libio.h
- /usr/include/limits.h
- /usr/include/linux/errno.h
- /usr/include/linux/limits.h
- /usr/include/linux/param.h
- /usr/include/malloc.h
- /usr/include/math.h
- /usr/include/memory.h
- /usr/include/mntent.h
- /usr/include/netdb.h
- /usr/include/netinet/in.h
- /usr/include/paths.h
- /usr/include/pwd.h
- /usr/include/rpc/netdb.h
- /usr/include/setjmp.h
- /usr/include/signal.h
- /usr/include/stdint.h
- /usr/include/stdio.h
- /usr/include/stdlib.h
- /usr/include/string.h
- /usr/include/sys/cdefs.h
- /usr/include/sys/ioctl.h
- /usr/include/sys/ipc.h
- /usr/include/sys/mman.h
- /usr/include/sys/param.h
- /usr/include/sys/select.h
- /usr/include/sys/shm.h
- /usr/include/sys/socket.h
- /usr/include/sys/stat.h
- /usr/include/sys/sysmacros.h
- /usr/include/sys/time.h
- /usr/include/sys/ttydefaults.h
- /usr/include/sys/types.h
- /usr/include/sys/uio.h
- /usr/include/sys/wait.h
- /usr/include/time.h
- /usr/include/unistd.h
- /usr/include/_G_config.h
- /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/float.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/limits.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdarg.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stddef.h
- /usr/local/gcc2byteunicode/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/syslimits.h
- /usr/local/include/AL/al.h
- /usr/local/include/AL/alc.h
- /usr/local/include/AL/alctypes.h
- /usr/local/include/AL/altypes.h
- /usr/local/include/AL/alut.h
- /usr/local/include/AL/aluttypes.h
- /usr/local/include/SDL/begin_code.h
- /usr/local/include/SDL/close_code.h
- /usr/local/include/SDL/SDL.h
- /usr/local/include/SDL/SDL_active.h
- /usr/local/include/SDL/SDL_audio.h
- /usr/local/include/SDL/SDL_byteorder.h
- /usr/local/include/SDL/SDL_cdrom.h
- /usr/local/include/SDL/SDL_error.h
- /usr/local/include/SDL/SDL_events.h
- /usr/local/include/SDL/SDL_getenv.h
- /usr/local/include/SDL/SDL_joystick.h
- /usr/local/include/SDL/SDL_keyboard.h
- /usr/local/include/SDL/SDL_keysym.h
- /usr/local/include/SDL/SDL_main.h
- /usr/local/include/SDL/SDL_mouse.h
- /usr/local/include/SDL/SDL_mutex.h
- /usr/local/include/SDL/SDL_quit.h
- /usr/local/include/SDL/SDL_rwops.h
- /usr/local/include/SDL/SDL_timer.h
- /usr/local/include/SDL/SDL_types.h
- /usr/local/include/SDL/SDL_version.h
- /usr/local/include/SDL/SDL_video.h
- /usr/src/bs/BUILD/glibc/build-i386-linux/config.h
- /usr/X11R6/include/GL/gl.h
- /usr/X11R6/include/GL/glext.h
- /usr/X11R6/include/GL/glx.h
- /usr/X11R6/include/GL/glxtokens.h
- /usr/X11R6/include/X11/X.h
- /usr/X11R6/include/X11/Xfuncproto.h
- /usr/X11R6/include/X11/Xlib.h
- /usr/X11R6/include/X11/Xosdefs.h
- /usr/X11R6/include/X11/Xutil.h

View file

@ -0,0 +1,11 @@
0x0 = eax
0x1 = ecx
0x2 = edx
0x3 = ebx
0x4 = ?
0x5 = ?
0x6 = esi
0x7 = edi
0xB = fst7
0xC = fst7
0xD = fst6

View file

@ -0,0 +1,21 @@
13 = Entity::ShowInfo
25 = Entity::setAngles
33 = Entity::Postthink
34 = Entity::Think
46 = Entity::EndFrame
47 = Entity::CalcBlend
52 = Entity::PreAnimate
53 = Entity::PostAnimate
55 = Entity::DumpAnimInfo
58 = Projectile::DoDecal
60 = Item::GetOwner
70 = Player::SetViewAngles (player)
72 = Player::GetViewAngles (player)
74 = Player::GunTarget (player)
75 = Item::getName( item )
93 = Weapon::SetWeaponAnim
95 = Weapon::StopWeaponAnim
vehicle
169 = Vehicle::SetSlotsNonSolid
170 = Vehicle::SetSlotsSolid

View file

@ -0,0 +1 @@
\r\n\t(\r\n\tPARAMETERS\r\n\t)\r\n\r\n{\r\n\t// FIXME: stub\r\n\tSTUB();\r\n}\r\n

10070
misc/restuff/ida/ida.h Normal file

File diff suppressed because it is too large Load diff

135
misc/restuff/ida/ida_ui.h Normal file
View file

@ -0,0 +1,135 @@
#include "ida.h"
typedef int uihandle_t;
#include "ui/usignal.h"
#include "ui/uisize2d.h"
#include "ui/uipoint2d.h"
#include "ui/uirect2d.h"
#include "ui/ucolor.h"
#include "ui/uifont.h"
#include "ui/uiwidget.h"
#include "ui/uimenu.h"
#include "ui/ulist.h"
#include "ui/uistatus.h"
#include "ui/uilabel.h"
#include "ui/uislider.h"
#include "ui/uihorizscroll.h"
#include "ui/uivertscroll.h"
#include "ui/uibutton.h"
#include "ui/cl_uibind.h"
#include "ui/uibind.h"
#include "ui/uibindlist.h"
#include "ui/uicheckbox.h"
#include "ui/uifloatwnd.h"
#include "ui/uipopupmenu.h"
#include "ui/uiconsole.h"
#include "ui/uidialog.h"
#include "ui/editfield.h"
#include "ui/uifield.h"
#include "ui/uilangamelist.h"
#include "ui/uiglobalgamelist.h"
#include "ui/uilayout.h"
#include "ui/uilist.h"
#include "ui/uilistbox.h"
#include "ui/uilistctrl.h"
#include "ui/uimenu.h"
#include "ui/uimledit.h"
#include "ui/uinotepad.h"
#include "ui/uipulldownmenu.h"
#include "ui/uipulldownmenucontainer.h"
#include "ui/uiwinman.h"
#include "ui/cl_uidmbox.h"
#include "ui/cl_uigmbox.h"
#include "ui/cl_uiminicon.h"
#include "ui/cl_uifilepicker.h"
#include "ui/cl_uimaprunner.h"
#include "ui/cl_uimpmappicker.h"
#include "ui/cl_uiplayermodelpicker.h"
#include "ui/cl_uisoundpicker.h"
#include "ui/cl_uiview3d.h"
#include "ui/cl_inv.h"
#include "ui/cl_invrender.h"
#include "ui/cl_uistd.h"
#include "ui/cl_uiloadsave.h"
typedef struct ScoreboardListItem_s {
void *_vptr;
str strings[ 8 ];
qboolean bColorSet;
UColor backColor;
UColor textColor;
qboolean bTitleItem;
} ScoreboardListItem;
typedef struct uiGlobals_s {
UList_str_ fileList;
void *globalFont;
str clientData;
} uiGlobals_t;
typedef struct uiimport_s {
uihandle_t( *Rend_RegisterMaterial )( const char *name );
uihandle_t( *Rend_RefreshMaterial )( const char *name );
void( *Rend_Set2D )( int x, int y, int w, int h, float left, float right, float bottom, float top, float n, float f );
void( *Rend_SetColor )( const float *rgba );
void( *Rend_Scissor )( int x, int y, int width, int height );
void( *Rend_DrawPicStretched )( float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader );
void( *Rend_DrawPicTiled )( float x, float y, float w, float h, qhandle_t hShader );
fontheader_t *( *Rend_LoadFont )( const char *name );
void( *Rend_DrawString )( fontheader_t *font, const char *text, float x, float y, int maxlen, qboolean bVirtualScreen );
void( *Rend_DrawBox )( float x, float y, float w, float h );
int( *Rend_GetShaderWidth )( qhandle_t hShader );
int( *Rend_GetShaderHeight )( qhandle_t hShader );
void ( *File_PickFile )( const char *name, Listener *obj, Event& event );
void ( *File_ListFiles )( const char *filespec );
int ( *File_OpenFile )( const char *qpath, void **buffer );
void ( *File_FreeFile )( void *buffer );
void ( *File_WriteFile )( const char *qpath, const void *buffer, int size );
uihandle_t ( *Snd_RegisterSound )( const char *sample, qboolean streamed );
void ( *Snd_PlaySound )( const char *sound_name );
qboolean ( *Alias_Add )( const char *alias, const char *name, const char *parameters );
const char *( *Alias_FindRandom )( const char *alias, aliasListNode_t **ret );
const char *( *Cvar_GetString )( const char *name, const char *defval );
cvar_t *( *Cvar_Find )( const char *var_name );
void ( *Cvar_Set )( const char *var_name, const char *value );
void ( *Cvar_Reset )( const char *var_name );
void ( *Cmd_Stuff )( const char *text );
void ( *Sys_Printf )( const char *text, ... );
void ( *Sys_Error )( int error, const char *text, ... );
void ( *Sys_DPrintf )( const char *text, ... );
int ( *Sys_Milliseconds )();
int ( *Sys_IsKeyDown )( int key );
const char *( *Sys_GetClipboard )( void );
void( *Sys_SetClipboard )( const char *foo );
const char *( *Cmd_CompleteCommandByNumber )( const char *partial, int number );
const char *( *Cvar_CompleteCvarByNumber )( const char *partial, int number );
void( *UI_WantsKeyboard )( void );
const char *( *Client_TranslateWidgetName )( const char *widget );
void( *Connect )( const char *server );
const char *( *Key_GetKeynameForCommand )( const char *command );
char *( *Key_GetCommandForKey )( int keynum );
void ( *Key_SetBinding )( int keynum, const char *binding );
void ( *Key_GetKeysForCommand )( const char *command, int *key1, int *key2 );
const char *( *Key_KeynumToString )( int keynum );
const char *( *GetConfigstring )( int index );
void ( *UI_CloseDMConsole )( void );
} uiimport_t;
typedef struct uiexport_s {
void ( *AddFileToList ) ( );
void ( *ResolutionChange ) ( );
void ( *Init ) ( );
void ( *Shutdown ) ( );
int ( *FontStringWidth ) ( );
} uiexport_t;
typedef struct uidef_s {
int time;
int vidWidth;
int vidHeight;
int mouseX;
int mouseY;
unsigned int mouseFlags;
int uiHasMouse;
} uidef_t;

View file

@ -0,0 +1,3 @@
#define[ \s]*([A-Za-z_0-9]*)[\s]*(\(.*\)|[0-9xa-f\.\-]*)
-> static constexpr unsigned int $1 = $2;

View file

@ -0,0 +1,15 @@
== Remove comments from class ==
- Find :
- Replace : /\* .*? \*/
== Remove class name from class ==
- Find :
- Replace : class .+?::
== Put class name for functions ==
- Find : ^.*?
- Replace : $0ClassName::
== Declare functions ==
- Find : ;
- Replace : \r\n{\r\n\t// FIXME: STUB\r\n}\r\n

View file

@ -0,0 +1,100 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { INV_MOVE_NONE, INV_MOVE_BOB, INV_MOVE_SPIN } inv_move_type;
typedef enum { INV_CASCADE_LEFT, INV_CASCADE_RIGHT } inv_cascade_type;
typedef enum { INV_HUDANGLES_BASE, INV_HUDANGLES_COMPASS, INV_HUDANGLES_COMPASS_NEEDLE } inv_hudangles_type;
typedef struct item_properties_s {
Class baseClass;
float scale;
vec3_t angles;
vec3_t angledeltas;
vec3_t rotateoffset;
vec3_t offset;
inv_move_type move;
str model;
str anim;
} item_properties_t;
typedef struct inventory_item_s {
Class baseClass;
str name;
str ammoname;
int equip;
int width;
int height;
int barwidth;
int barheight;
int baroffsetY;
int baroffsetX;
float modelWindowX;
float modelWindowY;
float modelWindowWidth;
float modelWindowHeight;
char selShaderOnTop;
char checkammo;
short pad2;
str command;
inv_hudangles_type anglesType;
item_properties_t hudprops;
item_properties_t invprops;
UIReggedMaterial *bgshader;
UIReggedMaterial *barshader;
UIReggedMaterial *selshader;
} inventory_item_t;
typedef struct inventory_type_s {
str name;
bool bg_tile;
UIReggedMaterial *texture;
UIReggedMaterial *bg;
UIReggedMaterial *hoverTexture;
UIReggedMaterial *selTexture;
Container items;
} inventory_type_t;
typedef struct inventory_s {
int typewidth;
int typeheight;
int horizoffset;
int vertoffset;
int align;
inv_cascade_type cascade;
str selectsound;
str rejectsound;
str changesound;
Container types;
} inventory_t;
typedef struct invlistener_s {
Listener2 invlistener;
inventory_t *inv;
inventory_type_t *curtype;
inventory_item_t *curitem;
int defaultWidth;
int defaultHeight;
int defaultBarWidth;
int defaultBarHeight;
int defaultBarOffsetX;
int defaultBarOffsetY;
} invlistener;

View file

@ -0,0 +1,43 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { selectsound, rejectsound, changesound } invsound_t;
typedef struct FakkInventory_s FakkInventory;
typedef struct FakkItemList_s {
UIWidget baseClass;
inventory_type_t *type;
uipopup_describe m_describe[ 10 ];
inventory_item_t *m_hoveritem;
inventory_item_t *m_lastmenuitem;
FakkInventory *m_parent;
float m_hovertop;
} FakkItemList;
typedef struct FakkInventory_s {
UIWidget baseClass;
inventory_t *m_inv;
SafePtr2_t m_currentlist;
inventory_type_t *m_currenttype;
int m_currentitemnum;
} FakkInventory;

View file

@ -0,0 +1,63 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct bind_item_s {
str name;
str command;
UIReggedMaterial *nameMaterial;
} bind_item_t;
typedef struct bind_s {
int width;
int height;
int fillwidth;
int commandwidth;
int commandheight;
int primarykeywidth;
int primarykeyheight;
int alternatekeywidth;
int alternatekeyheight;
int align;
UColor titlebgcolor;
UColor titlefgcolor;
UColor activefgcolor;
UColor activebgcolor;
UColor activebordercolor;
UColor inactivefgcolor;
UColor inactivebgcolor;
UColor highlightfgcolor;
UColor highlightbgcolor;
UColor selectfgcolor;
UColor selectbgcolor;
str changesound;
str activesound;
str entersound;
str headers[ 3 ];
UIReggedMaterial *headermats[ 3 ];
UIReggedMaterial *fillmaterial;
Container binds;
} bind_t;
typedef struct bindlistener_s {
Listener2 baseClass;
bind_t *bind;
} bindlistener;

View file

@ -0,0 +1,37 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { box_moving_out, box_moving_in, box_out, box_in } boxstate_t;
typedef struct UIDMBox_s {
UIWidget baseClass;
item_t m_items[ 10 ];
int m_numitems;
bool m_reallyshown;
UIFont *m_fontbold;
bool m_boxmovingout;
boxstate_t m_boxstate;
int m_boxtime;
int m_movespeed;
int m_iBeginDecay;
int m_iEndDecay;
} UIDMBox;

View file

@ -0,0 +1,30 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct FilePickerClass_s {
USignal parentClass;
UIFloatingWindow *window;
UIListCtrl *listbox;
str currentDirectory;
str rootDirectory;
str extension;
} FilePickerClass;

View file

@ -0,0 +1,35 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIGMBox_s {
UIWidget baseClass;
item_t m_items[ 5 ];
int m_numitems;
bool m_reallyshown;
class UIFont *m_fontbold;
bool m_boxmovingout;
boxstate_t m_boxstate;
int m_boxtime;
int m_movespeed;
int m_iBeginDecay;
int m_iEndDecay;
} UIGMBox;

View file

@ -0,0 +1,27 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UILANGameClass_s {
UIListCtrl baseClass;
int m_iLastUpdateTime;
UIReggedMaterial *m_noservers_mat;
} UILANGameClass;

View file

@ -0,0 +1,26 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIFAKKLoadGameClass_s {
UIListCtrl baseClass;
bool m_bRemovePending;
} UIFAKKLoadGameClass;

View file

@ -0,0 +1,39 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct MapRunnerClass_s {
FilePickerClass baseClass;
} MapRunnerClass;
typedef struct ViewSpawnerClass_s {
FilePickerClass baseClass;
} ViewSpawnerClass;
typedef struct LODSpawnerClasss_s {
FilePickerClass baseClass;
} LODSpawnerClass;
typedef struct UIPickFileClass_s {
FilePickerClass baseClass;
Listener *retobj;
Event *retevent;
} UIPickFileClass;

View file

@ -0,0 +1,32 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct FakkMiniconsole_s {
UIWidget baseClass;
Container m_lines;
int m_maxlines;
bool m_reallyshown;
bool m_boxmovingout;
boxstate_t m_boxstate;
int m_boxtime;
int m_movespeed;
} FakkMiniconsole;

View file

@ -0,0 +1,28 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct MpMapPickerClass_s {
UIFloatingWindow *window;
UIListCtrl *listbox;
str currentDirectory;
str rootDirectory;
} MpMapPickerClass;

View file

@ -0,0 +1,29 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct PlayerModelPickerClass_s {
UIFloatingWindow *window;
UIListCtrl *listbox;
str currentDirectory;
str rootDirectory;
qboolean m_bGermanModels;
} PlayerModelPickerClass;

View file

@ -0,0 +1,30 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIFAKKServerList_s {
UIListCtrl baseClass;
void *m_serverList;
char m_bHasList;
char m_bLANListing;
char m_bGettingList;
char m_bUpdatingList;
} UIFAKKServerList;

View file

@ -0,0 +1,25 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct SoundPickerClass_s {
FilePickerClass parentClass;
} SoundPickerClass;

View file

@ -0,0 +1,61 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum {
L_STATBAR_NONE,
L_STATBAR_HORIZONTAL,
L_STATBAR_VERTICAL,
L_STATBAR_VERTICAL_REVERSE,
L_STATBAR_VERTICAL_STAGGER_EVEN,
L_STATBAR_VERTICAL_STAGGER_ODD,
L_STATBAR_CIRCULAR,
L_STATBAR_NEEDLE,
L_STATBAR_ROTATOR,
L_STATBAR_COMPASS,
L_STATBAR_SPINNER,
L_STATBAR_HEADING_SPINNER
} statbar_orientation_t;
typedef struct UIFakkLabel_s {
UILabel baseClass;
SafePtr2_t m_lastitem;
int m_lastitemindex;
int m_stat;
int m_stat_configstring;
int m_maxstat;
int m_itemindex;
int m_inventoryrendermodelindex;
str m_sDrawModelName;
qboolean m_rendermodel;
statbar_orientation_t m_statbar_or;
float m_statbar_min;
float m_statbar_max;
float m_lastfrac;
float m_flashtime;
vec3_t m_offset;
vec3_t m_rotateoffset;
vec3_t m_angles;
float m_scale;
str m_anim;
UIReggedMaterial *m_statbar_material;
UIReggedMaterial *m_statbar_material_flash;
} UIFakkLabel;

View file

@ -0,0 +1,37 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct View3D_s {
UIWidget baseClass;
float m_printfadetime;
float m_printalpha;
str m_printstring;
UIReggedMaterial *m_print_mat;
qboolean m_locationprint;
int m_x_coord;
int m_y_coord;
qboolean m_letterbox_active;
} View3D;
typedef struct ConsoleView_s {
UIWidget baseClass;
} ConsoleView;

View file

@ -0,0 +1,32 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __EDITFIELD_H__
#define __EDITFIELD_H__
typedef struct EditField_s {
char m_buffer[ 256 ];
int m_cursor;
} EditField;
#endif

View file

@ -0,0 +1,44 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UColor_s {
float r;
float g;
float b;
float a;
} UColor;
typedef struct UColorHSV_s {
float h;
float s;
float v;
float a;
} UColorHSV;
typedef enum { DARK, REALLYDARK, LIGHT, NORMAL } colorType_t;
typedef struct UBorderColor_s {
UColor dark;
UColor reallydark;
UColor light;
UColor original;
} UBorderColor;

View file

@ -0,0 +1,34 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIBindButton_s {
UIButton baseClass;
str m_bindcommand;
int m_bindindex;
qboolean m_getkey;
qboolean m_alternate;
str m_entersound;
str m_activesound;
str m_last_keyname;
UIReggedMaterial *m_mat;
} UIBindButton;

View file

@ -0,0 +1,40 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIFakkBindList_s {
UIWidget baseWidget;
bool m_created;
UIVertScroll *m_scroll;
UIReggedMaterial *m_presskey_mat;
UILabel *m_presskey_wid;
Container_t m_widgetlist;
Container_t m_miscwidgets;
int m_activerow;
int m_activeitem;
bind_t *m_bind;
} UIFakkBindList;
typedef struct UIFakkBindListLabel_s {
UILabel baseClass;
UIFakkBindList *m_list;
} UIFakkBindListLabel;

View file

@ -0,0 +1,44 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIButtonBase_s {
UIWidget baseClass;
mouseState_t m_mouseState;
str m_hoverSound;
str m_hoverCommand;
} UIButtonBase;
typedef struct UIButton_s {
UIButtonBase baseClass;
} UIButton;
typedef struct ToggleCVar_s {
USignal baseClass;
str m_cvarname;
UIButton *m_button;
} ToggleCVar;
typedef struct ExecCmd_s {
USignal baseClass;
UIButton *m_button;
str m_cmd;
} ExecCmd;

View file

@ -0,0 +1,33 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UICheckBox_s {
UIWidget baseClass;
str m_checked_command;
str m_unchecked_command;
UIReggedMaterial *m_checked_material;
UIReggedMaterial *m_unchecked_material;
bool m_checked;
bool m_depressed;
float m_check_width;
float m_check_height;
} UICheckBox;

View file

@ -0,0 +1,74 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef void ( *consoleHandler_t )( const char *text );
typedef struct {
str string;
int lines;
int begins[ 10 ];
int breaks[ 10 ];
UColor *pColor;
} item;
typedef struct UIConsole_s {
UIWidget baseClass;
UList_str_ m_history;
void *m_historyposition;
item m_items[ 300 ];
str m_currentline;
UIVertScroll *m_scroll;
int m_firstitem;
int m_numitems;
int m_caret;
str m_completionbuffer;
bool m_refreshcompletionbuffer;
int m_cntcmdnumber;
int m_cntcvarnumber;
consoleHandler_t m_consolehandler;
} UIConsole;
typedef struct UIFloatingConsole_s {
UIFloatingWindow baseClass;
UIStatusBar *m_status;
SafePtr2_t m_console;
consoleHandler_t m_handler;
UColor m_consoleColor;
UColor m_consoleBackground;
float m_consoleAlpha;
} UIFloatingConsole;
typedef struct UIDMConsole_s {
UIConsole baseClass;
qboolean m_bQuickMessageMode;
int m_iMessageMode;
} UIDMConsole;
typedef struct UIFloatingDMConsole_s {
UIFloatingWindow baseClass;
UIStatusBar *m_status;
SafePtr2_t m_console;
consoleHandler_t m_handler;
UColor m_consoleColor;
UColor m_consoleBackground;
float m_consoleAlpha;
} UIFloatingDMConsole;

View file

@ -0,0 +1,28 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIDialog_s {
UIFloatingWindow baseClass;
UILabel *m_label;
UIButton *m_ok;
UIButton *m_cancel;
} UIDialog;

View file

@ -0,0 +1,27 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIField_s {
UIWidget baseClass;
EditField m_edit;
int m_iPreStep;
} UIField;

View file

@ -0,0 +1,40 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIChildSpaceWidget_s {
UIWidget baseClass;
} UIChildSpaceWidget;
typedef struct UIFloatingWindow_s {
UIWidget baseClass;
UIPoint2D m_clickOffset;
bool m_isPressed;
UColor m_titleColor;
UColor m_textColor;
UIChildSpaceWidget *m_childspace;
bool m_minimized;
float m_restoredHeight;
UIPoint2D m_clickpoint;
int m_clicktime;
UIButton *m_closeButton;
UIButton *m_minimizeButton;
} UIFloatingWindow;

View file

@ -0,0 +1,30 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { FONT_JUSTHORZ_CENTER, FONT_JUSTHORZ_LEFT, FONT_JUSTHORZ_RIGHT } fonthorzjustify_t;
typedef enum { FONT_JUSTVERT_TOP, FONT_JUSTVERT_CENTER, FONT_JUSTVERT_BOTTOM } fontvertjustify_t;
typedef struct UIFont_s {
unsigned int m_listbase;
UColor color;
fontheader_t *m_font;
} UIFont;

View file

@ -0,0 +1,25 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIGlobalGameList_s {
UILanGameList baseClass;
} UIGlobalGameList;

View file

@ -0,0 +1,42 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { VS_NONE, VS_UP_ARROW, VS_DOWN_ARROW, VS_THUMB, VS_PAGE_DOWN, VS_PAGE_UP } whatspressed;
typedef struct UIHorizScroll_s {
UIWidget baseClass;
int m_numitems;
int m_pagewidth;
int m_topitem;
UIFont m_marlett;
whatspressed m_pressed;
UIRect2D thumbRect;
struct {
int itemOffset;
int orgItem;
} m_dragThumbState;
bool m_frameinitted;
UColor m_thumbcolor;
UColor m_solidbordercolor;
} UIHorizScroll;

View file

@ -0,0 +1,34 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct {
str value;
str string;
} linkstring;
typedef struct UILabel_s {
UIWidget baseClass;
str label;
Container m_linkstrings;
qboolean m_bLinkCvarToShader;
str m_sCurrentShaderName;
} UILabel;

View file

@ -0,0 +1,47 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UILanGameList_s {
UIWidget baseClass;
bool m_created;
UIVertScroll *m_Vscroll;
UIHorizScroll *m_Hscroll;
UIReggedMaterial *m_noservers_mat;
UILabel *m_noservers_wid;
UIReggedMaterial *m_fill_mat;
Container m_widgetlist;
Container m_titlewidgets;
Container m_miscwidgets;
int m_activerow;
int m_activeitem;
Container m_servers;
int m_iNumColumns;
int m_iPrevNumServers;
int m_iCurrNumServers;
float m_fCurColumnWidth;
} UILanGameList;
typedef struct UILanGameListLabel_s {
UILabel baseClass;
int m_iLastPressedTime;
UILanGameList *m_list;
} UILanGameListLabel;

View file

@ -0,0 +1,31 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UILayout_s {
Listener2 baseClass;
str m_filename;
Script *m_script;
Stack m_scriptstack;
UIWidgetContainer *m_currentcontainer;
UIWidget *m_currentwidget;
bool m_bLoaded;
} UILayout;

View file

@ -0,0 +1,47 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct {
str itemname;
str itemalias;
} UIListItem;
typedef struct UIList_s {
UIWidget baseClass;
Container m_itemlist;
int m_currentItem;
float m_arrow_width;
UIRect2D *m_next_arrow_region;
UIRect2D *m_prev_arrow_region;
char m_depressed;
char m_held;
short pad1;
UIReggedMaterial *m_prev_arrow;
UIReggedMaterial *m_next_arrow;
char m_prev_arrow_depressed;
char m_next_arrow_depressed;
short pad2;
} UIList;
typedef struct UIListIndex_s {
UIList baseClass;
} UIListIndex;

View file

@ -0,0 +1,45 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIListBase_s {
UIWidget baseClass;
int m_currentItem;
UIVertScroll *m_vertscroll;
qboolean m_bUseVertScroll;
} UIListBase;
typedef struct ListItem_s {
Class_t baseClass;
str string;
str command;
int index;
} ListItem;
typedef struct UIListBox_s {
UIListBase baseClass;
Container m_itemlist;
struct {
int time;
int selected;
UIPoint2D point;
} m_clickState;
} UIListBox;

View file

@ -0,0 +1,58 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { TYPE_STRING, TYPE_OWNERDRAW } griditemtype_t;
typedef struct UIListCtrlItem_s {
void *_vptr;
} UIListCtrlItem;
typedef struct m_clickState_s {
int time;
int selected;
UIPoint2D point;
} m_clickState_t;
typedef struct UIListCtrl_s {
UIListBase baseClass;
struct columndef_t {
str title;
int name;
int width;
bool numeric;
bool reverse_sort;
};
int m_iLastSortColumn;
UIFont *m_headerfont;
Container m_itemlist;
Container m_columnlist;
qboolean m_bDrawHeader;
struct {
int column;
int min;
} m_sizestate;
m_clickState_s m_clickState;
int( *m_comparefunction ) ();
} UIListCtrl;

View file

@ -0,0 +1,39 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct Menus_s {
Listener2 baseClass;
qboolean m_fullscreen;
int m_vidmode;
Container_t m_itemlist;
str m_name;
} Menu;
typedef struct MenuManager_s {
Listener2 baseClass;
Container m_menulist;
Stack m_showmenustack;
Stack m_menustack;
bool m_lock;
} MenuManager;

View file

@ -0,0 +1,48 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct selectionpoint_s {
int line;
int column;
} selectionpoint_t;
typedef struct selection_s {
selectionpoint_s begin;
selectionpoint_s end;
} selection_t;
typedef struct dragState_s {
UIPoint2D lastPos;
} dragState_t;
typedef struct UIMultiLineEdit_s {
UIWidget baseClass;
selection_s m_selection;
dragState_s m_dragState;
UList_str_ m_lines;
UIVertScroll *m_vertscroll;
mouseState_t m_mouseState;
char m_shiftForcedDown;
char m_edit;
char m_changed;
char pad1;
} UIMultiLineEdit;

View file

@ -0,0 +1,58 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UINotepad_s UINotepad;
typedef struct UINotepadEdit_s {
UIMultiLineEdit baseClass;
UINotepad *m_notepad;
} UINotepadEdit;
typedef enum { STATE_NONE, STATE_GOTO_LINE, STATE_FIND_TEXT, STATE_SAVE_AS, STATE_TIMED_MESSAGE, STATE_CONFIRMCLOSE } state_t;
typedef struct textinput_s {
str text;
} textinput_t;
typedef struct timedmessage_s {
int die;
str text;
} timedmessage_t;
typedef struct ctrlevent_s {
char ch;
Event *ev;
} ctrlevent_t;
typedef struct UINotepad_s {
UIFloatingWindow baseClass;
Container_t m_popups;
state_t m_state;
textinput_s m_textinput;
timedmessage_s m_timedmessage;
str m_lastfind;
str m_filename;
UINotepadEdit *m_edit;
UIStatusBar *m_status;
UIPulldownMenu *m_menu;
} UINotepad;

View file

@ -0,0 +1,26 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIPoint2D_s {
float x;
float y;
} UIPoint2D;

View file

@ -0,0 +1,46 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { UIP_NONE, UIP_EVENT, UIP_EVENT_STRING, UIP_SUBMENU, UIP_CMD, UIP_CVAR, UIP_SEPARATOR } uipopup_type;
typedef enum { UIP_WHERE_RIGHT, UIP_WHERE_DOWN } uipopup_where;
typedef struct uipopup_describe_s {
str title;
UIReggedMaterial *material;
uipopup_type type;
void *data;
} uipopup_describe;
typedef struct UIPopupMenu_s {
UIWidget baseClass;
Container *m_describe;
int m_selected;
Listener_t *m_listener;
struct UIPopupMenu_s *m_parentMenu;
struct UIPopupMenu_s *m_submenuptr;
int m_submenu;
UIFont m_marlett;
bool m_autodismiss;
UColor m_highlightFGColor;
UColor m_highlightBGColor;
} UIPopupMenu;

View file

@ -0,0 +1,42 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct uipull_describe_s {
str title;
UColor highlightFGColor;
UColor highlightBGColor;
UColor FGColor;
UColor BGColor;
UIReggedMaterial *material;
UIReggedMaterial *selected_material;
Container desc;
} uipull_describe;
typedef struct UIPulldownMenu_s {
UIWidget baseClass;
Container m_desc;
Listener_t *m_listener;
int m_submenu;
UIPopupMenu *m_submenuptr;
UColor m_highlightBGColor;
UColor m_highlightFGColor;
} UIPulldownMenu;

View file

@ -0,0 +1,28 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIPulldownMenuContainer_s {
UIWidget baseClass;
Container m_popups;
Container m_dataContainer;
UIPulldownMenu *m_menu;
} UIPulldownMenuContainer;

View file

@ -0,0 +1,26 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UIRect2D_s {
UIPoint2D pos;
UISize2D size;
} UIRect2D;

View file

@ -0,0 +1,26 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UISize2D_s {
float width;
float height;
} UISize2D;

View file

@ -0,0 +1,51 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { SLIDER_FLOAT, SLIDER_INTEGER } slidertype_t;
typedef struct UISlider_s {
UIWidget baseClass;
bool m_initialized;
float m_minvalue;
float m_maxvalue;
int m_minx;
int m_maxx;
int m_arrow_width;
float m_value;
float m_oldvalue;
float m_sliderwidth;
UIRect2D m_sliderregion;
UIRect2D m_prev_arrow_region;
UIRect2D m_next_arrow_region;
slidertype_t m_slidertype;
float m_stepsize;
bool m_prev_arrow_depressed;
bool m_next_arrow_depressed;
bool m_thumb_depressed;
UIReggedMaterial *m_bar_material;
UIReggedMaterial *m_prev_arrow_material;
UIReggedMaterial *m_next_arrow_material;
UIReggedMaterial *m_thumbmaterial;
UIReggedMaterial *m_prev_arrow_material_pressed;
UIReggedMaterial *m_next_arrow_material_pressed;
UIReggedMaterial *m_thumbmaterial_pressed;
} UISlider;

View file

@ -0,0 +1,44 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { M_NONE, M_DRAGGING } mouseState_t;
typedef struct UIWindowSizer_s {
UIWidget baseClass;
UIWidget *m_draggingwidget;
mouseState_t m_mouseState;
UIPoint2D m_screenDragPoint;
} UIWindowSizer;
typedef enum { WND_ALIGN_NONE, WND_ALIGN_BOTTOM } alignment_t;
typedef struct align_s {
float dist;
alignment_t alignment;
} align_t;
typedef struct UIStatusBar_s {
align_t m_align;
UIWidget *m_sizeenabled;
bool m_created;
UIWindowSizer *m_sizer;
} UIStatusBar;

View file

@ -0,0 +1,40 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef enum { VS_NONE, VS_UP_ARROW, VS_DOWN_ARROW, VS_THUMB, VS_PAGE_DOWN, VS_PAGE_UP } whatspressed;
typedef struct UIVertScroll_s {
UIWidget baseClass;
int m_numitems;
int m_pageheight;
int m_topitem;
UIFont m_marlett;
whatspressed m_pressed;
UIRect2D thumbRect;
struct {
int itemOffset;
int orgItem;
} m_dragThumbState;
bool m_frameinitted;
UColor m_thumbcolor;
UColor m_solidbordercolor;
} UIVertScroll;

View file

@ -0,0 +1,107 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct item_s {
} item_t;
typedef struct UIReggedMaterial_s {
uihandle_t hMat;
str name;
char isSet;
char isGot;
} UIReggedMaterial;
typedef struct UIReggedMaterial_s UIReggedMaterial;
typedef enum { border_none, border_3D, border_indent, border_outline } borderstyle_t;
typedef enum { D_NONE, D_FROM_LEFT, D_FROM_RIGHT, D_FROM_BOTTOM, D_FROM_TOP } direction_t;
typedef enum { MOTION_IN, MOTION_OUT } motion_t;
typedef struct UIWidget_s {
USignal baseClass;
UIRect2D m_frame;
float m_vVirtualScale[ 2 ];
UIPoint2D m_startingpos;
UIPoint2D m_origin;
UIRect2D m_screenframe;
UIPoint2D m_screenorigin;
UIRect2D m_clippedframe;
UIPoint2D m_clippedorigin;
UColor m_background_color;
UColor m_foreground_color;
UBorderColor m_border_color;
borderstyle_t m_borderStyle;
char m_visible;
char m_enabled;
short pad1;
UIFont *m_font;
struct UIWidget_s *m_parent;
Container_t m_children;
str m_name;
int m_canactivate;
str m_cvarname;
str m_cvarvalue;
str m_command;
Container_t m_showcommands;
Container_t m_hidecommands;
str m_title;
float m_indent;
float m_bottomindent;
UIReggedMaterial *m_material;
UIReggedMaterial *m_hovermaterial;
UIReggedMaterial *m_pressedmaterial;
char m_hovermaterial_active;
char m_pressedmaterial_active;
short pad2;
direction_t m_direction;
direction_t m_direction_orig;
motion_t m_motiontype;
float m_starttime;
float m_fadetime;
float m_alpha;
float m_local_alpha;
float m_motiontime;
str m_stopsound;
str m_clicksound;
int m_align;
int m_flags;
int m_dying;
int m_ordernum;
int m_configstring_index;
fonthorzjustify_t m_iFontAlignmentHorizontal;
fontvertjustify_t m_iFontAlignmentVertical;
qboolean m_bVirtual;
str m_enabledCvar;
void *m_commandhandler;
} UIWidget;
typedef struct UILayout_s UILayout;
typedef struct UIWidgetContainer_s {
UIWidget baseClass;
UColor m_bgfill;
qboolean m_fullscreen;
int m_vidmode;
int m_currentwidnum;
int m_maxordernum;
UILayout *m_layout;
} UIWidgetContainer;

View file

@ -0,0 +1,44 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct Binding_s {
str binding;
int key1;
int key2;
} Binding;
typedef struct UIWindowManager_s {
UIWidget baseClass;
unsigned int m_lastbuttons;
UIPoint2D m_oldpos;
SafePtr2_t m_oldview;
SafePtr2_t m_firstResponder;
UIWidget *m_activeControl;
UIWidget *m_backgroundwidget;
UIReggedMaterial *m_cursor;
str m_cursorname;
bool m_showcursor;
Container_t m_materiallist;
bool m_amidead;
UIWidget *m_bindactive;
Container_t bindings;
} UIWindowManager;

View file

@ -0,0 +1,33 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UListItem_str__s {
str item;
struct UListItem_str__s *next;
struct UListItem_str__s *prev;
} UListItem_str_;
typedef struct UList_str__s {
UListItem_str_ m_top;
UListItem_str_ *m_at;
int m_count;
} UList_str_;

View file

@ -0,0 +1,33 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
typedef struct UConnection_s {
Event m_inevent;
Event m_outevent;
Container_t m_listeners;
Container_t m_events;
} UConnection;
typedef struct USignal_s {
Listener2 baseClass;
Container m_connections;
} USignal;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,68 @@
m_State = -1;
m_State = 0; wait
m_State = 1; papers
m_State = 2; accept
m_State = 3; enemy
m_State = 4; halt
m_State = 5; deny
m_State = 20; Dog_Attack
m_State = 100; turret_combat
m_State = 101; turret_reaquire
m_State = 102; turret_takesnipernode
m_State = 103; turret_snipernode
m_State = 104; turret_runhome
m_State = 105; turret_runaway
m_State = 106; turret_charge
m_State = 107; turret_grenade
m_State = 108; turret_intro_anim
m_State = 109; turret_fakeenemy
m_State = 110; turret_coverinstead
m_State = 111; turret_becomecover
m_State = 112; turret_wait
m_State = 113; turret_retarget_sniper_node
m_State = 114; turret_retarget_step_side_small
m_State = 115; turret_retarget_path_exact
m_State = 116; turret_retarget_path_near
m_State = 117; turret_retarget_step_side_medium
m_State = 118; turret_retarget_step_side_large
m_State = 119; turret_retarget_step_face_medium
m_State = 120; turret_retarget_step_face_large
m_State = 200; balconyattack_findemeny
m_State = 201; balconyattack_target
m_State = 202; balconyattack_shoot
m_State = 300; cover_newenemy
m_State = 301; cover_findcover
m_State = 302; cover_takecover
m_State = 303; cover_finishreloading
m_State = 304; cover_specialattack
m_State = 305; cover_findenemy
m_State = 306; cover_searchnode
m_State = 307; cover_target
m_State = 308; cover_hide
m_State = 309; cover_shoot
m_State = 310; cover_grenade
m_State = 311; cover_huntenemy
m_State = 312; cover_attack
m_State = 313; cover_fakeenemy
m_PainState = 500; pain_initial
m_PainState = 501; pain_main
m_State = 600; alarm_idle
m_State = 601; alarm_move
m_State = 700; killed_begin
m_State = 701; killed_end ??
m_State = 800; balconykilled_begin
m_State = 801; balconykilled_intro
m_State = 802; balconykilled_loop
m_State = 803; balconykilled_outtro ??
m_State = 804; balconykilled_outtro ??
m_State = 805; balconykilled_end
m_State = 806; balconykilled_normal
m_State = 900; weaponless_normal
m_State = 901; weaponless_grenade
m_State = 902; ??
m_State = 1000; anim_initial
m_State = 1001; anim_main
m_State = 1100; curious_begin
m_State = 1101; curious_attack
m_State = 1200; Begin_MachineGunner
m_State = 1201; EventReload_mg42