Adding images to GuiMLTextCtrl?
by Vern Jensen · in Torque Game Builder · 03/03/2010 (11:04 am) · 4 replies
Is it possible to add pictures to the text in a GuiMLTextCtrl, or some other similar control perhaps that would allow combining images and text?
The idea is to do a tutorial that shows pictures of the things being talked about. Any ideas?
The idea is to do a tutorial that shows pictures of the things being talked about. Any ideas?
#2
03/18/2010 (4:58 pm)
Just tried this out, and works like a charm. Amazing. Thanks so much!
#3
I'am trying to use the <bitmap> tag but it's look like the engine can't find the file.
"Could not locate texture: game/help/HelpCorbeille"
However I have copy the file in all directory of the game (png and jpg) and tryied all those tags
Here my code
Any Idea of what's wrong, thanks ?
04/12/2010 (7:33 am)
Hi,I'am trying to use the <bitmap> tag but it's look like the engine can't find the file.
"Could not locate texture: game/help/HelpCorbeille"
However I have copy the file in all directory of the game (png and jpg) and tryied all those tags
<bitmap:game/help/HelpCorbeille> <bitmap:game/HelpCorbeille> <bitmap:HelpCorbeille>
Here my code
new GuiControl() {
profile = "GuiDefaultProfile";
position = "0 0";
extent = "1024 768";
minExtent = "8 2";
visible = "1";
new GuiMLTextCtrl(MessageText2){
Profile = "GuiMLTextProfile";
Position = "10 10";
Extent = "400 400";
MinExtent = "8 2";
Visible = "1";
text = "My Image under This<br><bitmap:game/help/HelpCorbeille>";
maxLength = "1024";
};
};Any Idea of what's wrong, thanks ?
#4
In fact it does work.
It did not because of the GuiMLTextCtrl extent. It must be higher than the picture width. Otherwhise the picture doesn't show up.
04/12/2010 (7:54 am)
Heu,In fact it does work.
It did not because of the GuiMLTextCtrl extent. It must be higher than the picture width. Otherwhise the picture doesn't show up.
Associate William Lee Sims
Machine Code Games
That adds an image called "sep" from the "game/help" directory to the control.
You can get all tags here: tdn.garagegames.com/wiki/GUI/TorqueML