Commit Graph

4216 Commits

Author SHA1 Message Date
TomyLobo
756383e3f0 [GPULib] cl_gpulib.lua: RenderTargetCache.Used[self.GPU.RT] now returns the render target index. 2009-12-22 17:06:32 +00:00
TomyLobo
47fb8ec1aa [Text screen] Renamed "justify" to "halign" and added a "valign" argument to Layouter:layout, for future reference. 2009-12-22 03:45:27 +00:00
TomyLobo
7f146c9989 [GPULib] cl_gpulib.lua: Reloading GPULib no longer marks all rendertargets as free.
[Text Screen] cl_init.lua: Made the layouter available to other components that might want to use it.
2009-12-22 01:59:21 +00:00
Dan
a6723e9112 [E2] files.lua and cl_files.lua: Tidied up the code a bit. Added void fileLoadList(); Added bool fileListLoaded; Added table fileListTable(); Added array fileList(); Added void runOnList(num active); Added bool fileListClk(); I made these a few weeks ago and they worked fine, contact me if there are any problems. 2009-12-21 04:34:47 +00:00
Dan
4afb9bdf84 cl_modelplug.lua: Added pcb models to the screen list. (Patch by Donkie) 2009-12-19 22:34:41 +00:00
TomyLobo
26cf6db7d3 [GPULib] Fixed the "Painting over other screens" bug. 2009-12-19 02:06:54 +00:00
Jimlad
f681264109 [Entity Marker] STOOL: Removed default link on spawn - please don't add this again, it adds very little and makes linking large numbers of emarkers even more of a chore. 2009-12-18 15:29:23 +00:00
TomyLobo
a1ed1d0557 Added Model Selectors for GPU, control panel, oscilloscope and all screens. (Thanks Grocel)
[Control Panel] Fixed models/props/cs_office/tv_plasma.mdl.
2009-12-17 13:21:06 +00:00
TomyLobo
daef0fa348 [E2] Removed background blur for popup boxes. Added confirmation boxes for "Delete" and "Save To". 2009-12-17 12:31:14 +00:00
TomyLobo
e851676c5b [E2] Holograms:
- clip.isglobal is now a boolean instead of a number. (on the client, not on the server!)
- Now setting the clip plane before drawing.
- Simplified ENT:SetClip
2009-12-16 17:17:06 +00:00
TomyLobo
ba8209570b [WireLib] WireShared.lua: The internal "newclass" function is now available externally as "WireLib.containers.newclass".
[GPULib] cl_gpulib.lua: You can now pass a color to GPU:Clear.
2009-12-15 12:18:12 +00:00
Dan
c42b658012 [E2] hologram.lua: Fixed two holograms being parent to each other crashing the server. Added Holo_Parent helper function. 2009-12-14 03:43:52 +00:00
TomyLobo
bb800b9843 [gmod_tool_auto] Split off into a separate file, separated the addon-specific parts so they can be easily moved to the according addons if wanted
[E2] Fixed runOnLast() when removing the chip.
2009-12-13 10:05:24 +00:00
TomyLobo
91fda76e63 [E2] entity.lua+bone.lua: E/B:apply(Offset)Torque with a zero force should no longer make entities disappear. 2009-12-12 20:42:58 +00:00
TomyLobo
b59b003894 [Keyboard] cl_init.lua: No lnger creating a new Panel each time you use a keyboard. Now using the PostRenderVGUI hook instead of CalcView. This solves a conflict with the Evolve admin addon. 2009-12-11 17:01:42 +00:00
TomyLobo
16dde0e36b [gmod_tool_auto] Pattern replacement functions are now called as function(ent, ntapped, capture1, capture2, ...) 2009-12-11 12:56:08 +00:00
TomyLobo
0f4a97b9e7 [E2] constraint.lua: Fixed noentity():isConstrainedTo(N) returning a number instead of nil. 2009-12-11 09:21:36 +00:00
TomyLobo
0df61b623f [E2] constraint.lua: Fixed noentity():isConstrainedTo() returning a number instead of nil.
[gmod_tool_auto] Renamed something internally.
2009-12-11 08:51:18 +00:00
TomyLobo
0b080734e5 [gmod_tool_auto]
- Added a lot of flexibility, including the ability to make mappings that cycle through a list of tools.
- Using it on prop_physics/func_physbox now cycles between easy precision and the physgun. All other prop types are mapped to the physgun.
- Using it on a wire entity now cycles between the entity's corresponding tool, the advanced wire tool and the debugger tool.
- Added mapping: adv dupe paster => adv dupe tool (cycles with wire_adv and wire_debugger, too)
- Made a preliminary extension interface for addon developers. See cl_wirelib.lua for documentation.
2009-12-10 12:21:04 +00:00
TomyLobo
9c34999845 [GPULib] Drawing textures instead of materials again. This might or might not fix the bugs where a screen displays the wrong contents. 2009-12-07 13:12:57 +00:00
TomyLobo
38393832fe [Entity Marker] STOOL: Made entity marker automatically link to the prop you place it on. 2009-12-07 11:43:46 +00:00
TomyLobo
c5e9ca6808 [E2] e2lib.lua: When using CPPI to get the owner fails, the normal way of obtaining an owner is used. This should make it possible to use sounds and trails on holos again.
[E2] bone.lua+entity.lua: E/B:apply(Offset)Torque now 
[E2] hologram.lua: Cleanup.
2009-12-07 10:46:04 +00:00
TomyLobo
ba3c812893 [E2] globalvars.lua: Prevented a Lua error when a player leaves. 2009-12-06 20:56:09 +00:00
TomyLobo
67646d88c2 [E2] e2lib.lua: Now getting owner info via CPPI, if possible. 2009-12-06 19:14:30 +00:00
TomyLobo
af1f8bca6c [E2] hologram.lua: You can now use all admin commands via rcon as well. wire_holograms_display_owners no longer throws lua errors when called via rcon. 2009-12-06 15:33:47 +00:00
TomyLobo
2b1807b4dc [WireLib] cl_wirelib.lua: gmod_tool_auto fixed for storage_* entities. Also changed the tool for prop_physics from physgun to easy precision. 2009-12-05 09:51:35 +00:00
TomyLobo
b4cb50dc65 [E2] compat.lua: Clarified notice, converted to e2function syntax 2009-12-04 05:31:36 +00:00
TomyLobo
d33f4450fc [Latch] Behaviour when turning off nocollide slightly modified, code simplified.
[E2] player.lua: Added E:vehicle().
[E2] serverinfo.lua: Converted to e2function syntax, optimized, simplified.
[GPULib] cl_gpulib.lua: The postrenderfunction is now passed the 3D2D arguments (pos, ang, resolution) and the aspect ratio (width/height)
[GPU] cl_init.lua: Fixed cursor being broken for most models. It's still a bit off for some, since their hit model doesnt correspond to the screen.
2009-12-04 05:27:49 +00:00
TomyLobo
daa33a8dc6 [Waypoint] STOOL: Pressing reload now removes the link to the next waypoint. 2009-12-02 08:05:09 +00:00
TomyLobo
80b43332c1 [Waypoint] init.lua: Removed debug message. 2009-12-02 07:45:13 +00:00
TomyLobo
cb42ffe801 [Waypoint] Added a "Waypoints" array output that outputs all entities connected to the node in question. 2009-12-02 07:44:14 +00:00
TomyLobo
c55e7d437e [Constraint Latch] init.lua: NoCollide is now removed properly (though hacky). 2009-12-02 07:03:24 +00:00
TomyLobo
da1cedebdd [GPU] cl_init.lua: Fixed a Lua error when setting cell 65503 to 1. WIREMOD-164 2009-12-01 14:16:04 +00:00
TomyLobo
2eca1e21e1 [Light] Added a wire_light_block cvar. Setting it to 1 will block all glow components of wire lights. This setting will not persist between sessions. 2009-11-30 08:34:49 +00:00
TomyLobo
45a754843f [E2] ranger.lua: Added rangerPersist(N). Passing 0 (the default) resets all ranger flags and filters every execution and after calling ranger/rangerOffset. Passing anything else will make the flags and filters persist until they're changed again.
[Wirelink] The wirelink tool can now be used on non-wire entities without a TriggerInput hook (but with outputs).
2009-11-29 07:50:00 +00:00
Dan
44719e141a [E2] hologram.lua: fixed flush_clip_queue() byte counting. 2009-11-28 18:28:39 +00:00
Dan
103d829976 [E2] hologram.lua & gmod_wire_hologram/cl_init.lua: Added holoClipEnabled(N,N) enables and disables clipping for holograms. Added holoClip(N,V,V,N) sets the clip for the given hologram. 2009-11-27 20:40:51 +00:00
TomyLobo
473887b0ac [E2] player.lua: Changed some argument names. 2009-11-26 02:05:43 +00:00
TomyLobo
1ffc0e57a6 [E2] (cl_)player.lua: Added R=E:steamFriends() and N=E:isSteamFriend(E) 2009-11-25 04:44:31 +00:00
TomyLobo
c170d98fad [WireLib] cl_wirelib.lua: Made gmod_tool_auto more extensible internally. External interfaces coming soon. 2009-11-25 00:30:09 +00:00
TomyLobo
1828dfd4a6 [WireLib] cl_wirelib.lua: gmod_tool_auto fixed. 2009-11-25 00:07:51 +00:00
TomyLobo
680deba9e3 [WireLib] cl_wirelib.lua: gmod_tool_auto now also works with the following tools from the CAF tab: Resource Distribution, Life Support 3, SBEP 2009-11-25 00:00:55 +00:00
TomyLobo
d062625f90 [WireLib] cl_wirelib.lua: Added a "gmod_tool_auto" command that automatically selects the appropriate tool for the entity you're currently facing. 2009-11-24 22:45:58 +00:00
Dan
4ca550d9f6 [E2] hologram.lua: Removed holoRemainingSpawns(), taken over by holoCanCreate() (holoRemainingSpawns doesn't work anyway...) 2009-11-24 21:57:52 +00:00
Dan
a243387f41 [E2] hologram.lua: holoCanCreate() returns false if the player is over the max holo limit. 2009-11-24 21:20:09 +00:00
Dan
40d45908df [E2] hologram.lua: Added (Num) holoCanCreate() returns whether or not the chip can spawn a hologram 2009-11-24 20:55:51 +00:00
Anticept
adb3c3ab77 TomyLobo forgot something. Uncommented administration container. 2009-11-24 20:55:38 +00:00
TomyLobo
adf3cf57ce WireMenus.lua: Fixed screens. See http://www.wiremod.com/forum/help-support/16161-displays-not-working-wire-revision-1914-a.html
Doh, committed 5 seconds before me -Anticept
2009-11-24 20:49:31 +00:00
Dan
bfce2d3f09 [E2] hologram.lua: Added (Vec)holoScale(Idx) returns hologram scale; Added (Vec)holoScaleUnits(idx) returns hologram size in garrysmod units; Fixed holoReset() not checking if model is on the accepted list. (First Commit :D) 2009-11-24 20:20:48 +00:00
TomyLobo
cb5b1de255 Removed ":GetTable()" from a couple of components where it was unnecessary. 2009-11-24 20:14:46 +00:00