I've set my mind on changing the f4 and f7 menu, or at least making a mod that makes it easier to mod those.
For now i'm trying to make the mechanics work, focusing primarily on the inventory screen.
What i'm trying to do is to replace the current bitmap.mdl with a text.mdl that in turn imports a png, aphachannels and all. (Note that I'm using the only function i know that actually succeeds in blending transparency properly: the one that handles gauges. Yeah, it's a kludge. I'm open for suggestions on that one).
this works:
for e.g. inventorylinebkgndbmp.mdl
Code: Select all
use "model";
inventorylinebkgndbmp =
ImportImageFromFile("mods/CThruPanes/media/cthru_inventorylinebkgnd.png", true);
Code: Select all
use "model";
inventorylinebkgndbmp =
TranslateImage(
BlendImage(
GaugeImageRect(
JustifyBottom,
ImportImageFromFile("mods/CThruPanes/media/cthru_inventorylinebkgnd.png", true),
Rect(0, 0, 214, 18),
true,
1
),
BlendModeAdd
),
Point(0,0)
);