„Setup-Tool [SetTexture] v0.07.02“ hinzufügen

master
Kxirya 2020-06-14 23:47:19 +00:00
parent 4facd89cc9
commit 32b27fbc55
1 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,70 @@
string back = "http://navi-lernen.square7.ch/Pangea/4CGS-Terminal_Back.png";
string draw = "";
string body = "width:1024, height:512, aplha:FF, bgcolour:Black";
string folder_blau = "http://navi-lernen.square7.ch/Pangea/Folder_blau.png";
string folder_bunt = "http://navi-lernen.square7.ch/Pangea/Folder_bunt.png";
string folder_cyan = "http://navi-lernen.square7.ch/Pangea/Folder_cyan.png";
string folder_gelb = "http://navi-lernen.square7.ch/Pangea/Folder_gelb.png";
string folder_gruen = "http://navi-lernen.square7.ch/Pangea/Folder_gruen.png";
string folder_orange = "http://navi-lernen.square7.ch/Pangea/Folder_orange.png";
string folder_pink = "http://navi-lernen.square7.ch/Pangea/Folder_pink.png";
string folder_rot = "http://navi-lernen.square7.ch/Pangea/Folder_rot.png";
string folder_schwarz = "http://navi-lernen.square7.ch/Pangea/Folder_schwarz.png";
string folder_silber = "http://navi-lernen.square7.ch/Pangea/Folder_silber.png";
string fenster = "http://navi-lernen.square7.ch/Pangea/fenster_512x327.png";
draw_icon(string icon_pic, integer x, integer y, integer width, integer height, string font, integer fontsize, string textcolor, string text)
{
integer icon_x = x;
integer icon_y = y;
vector textsize = osGetDrawStringSize("vector", text, font, fontsize);
llOwnerSay((string)textsize);
// if(textsize.x > width)
// icon_x = x + (width / 2);
draw = osMovePen(draw, icon_x, icon_y);
draw = osDrawImage(draw, width, height, icon_pic);
draw = osMovePen(draw, x, y + height);
draw = osSetFontName(draw, font);
draw = osSetFontSize(draw, fontsize);
draw = osSetPenColor(draw, textcolor);
draw = osDrawText(draw, text);
}
default
{
state_entry()
{
draw = osMovePen(draw, 0,0);
draw = osDrawImage(draw, 1024, 512, back);
//draw = osSetPenColor(draw, "FFFFFFFF");
draw_icon(folder_blau, 10, 10, 32, 25, "Arial Black", 8,"FFFFFFFF", "INFO");
//draw = osSetFontName(draw, "Arial Black");
//draw = osSetFontSize(draw, 8);
//draw = osMovePen(draw, 10,10);
//draw = osDrawImage(draw, 32, 25, folder_rot);
//draw = osSetPenColor(draw, "FFFFFFFF");
//draw = osMovePen(draw, 10,35);
//draw = osDrawText(draw, "INFO");
//draw = osMovePen(draw, 150,20);
//draw = osDrawImage(draw, 512, 327, fenster);
//draw = osSetPenColor(draw, "FF50FFFF");
//draw = osSetPenSize(draw, 1);
//draw = osDrawLine(draw, 6, 73, 293, 73);
//draw = osSetPenSize(draw, 5);
osSetDynamicTextureDataBlendFace("", "vector", draw, body, FALSE, 1, 0, 255, 1);
}
link_message(integer sender_num, integer num, string msg, key id)
{
if(id != llGetOwner())
return;
if(msg == "RESET")
llResetScript();
}
}