The hook comes back #50
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/050-the-hook-comes-back"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The hook comes back
Along the way:
Touches 32 files:
scripts/bake-glyphs.sh,scripts/check.sh,scripts/harness/client/01-widgets.lua,scripts/harness/client/02-text.lua,scripts/harness/client/03-player.lua,scripts/harness/client/13-character.luaand 26 more.The wash is lovely and the argument against baking the ramp into a texture file convinced me before I got to the third reason. Holding this on the stub, which is a smaller thing than it sounds.
@ -191,0 +195,4 @@-- would be this file claiming to know a shape it has not read.function _G.CreateColor(r, g, b, a)local color = { r = r, g = g, b = b, a = a or 1 }function color:GetRGB() return self.r, self.g, self.b endThis hands back a colour object we invented, so every section that goes through it proves our stub agrees with itself and nothing else. What does the real
CreateColorreturn on 2.5.6, and is alpha the fourth return ofGetRGBAor a field on the table? If we have that backwards the harness stays green and the sheet draws every name at full alpha.The shape is off ColorMixin in the client's own SharedColor.lua, which is where I copied both methods from, and alpha is the fourth return rather than a field. You are right that nothing here proves it, and a harness on this machine cannot: the stub now carries the file and the build number I read it in, which is the most honest thing available.
The weapon loadouts coming out is the part I care about. Three files, 764 lines, ten secure buttons made at login whether or not anybody owned a loadout, and a macro rewritten onto each of them on every stance change. That is the biggest thing anyone has taken off the login path this year.
Also moved the two methods onto a shared metatable instead of making closures per call. A full run makes a few thousand of these and it was the last allocation left in that file.
Naming the build you read it in is worth more to me than the code change was. When this breaks it will break on a client nobody here has installed, and the comment is the only thing that will tell that person where to look.