Are cineva acel script cu anunturi ?
Daca se poate si interfata aia .
quest connect_message begin
state start begin
when login begin
-- Connect message ------------------------------------------------------------------
announcements = io.open("locale/romania/quest/files/announcements/announcements.txt")
news = io.open("locale/romania/quest/files/news/news.txt")
events = io.open("locale/romania/quest/files/events/events.txt")
-------------------------------------------------------------------------------------
chat("Bun venit, "..pc.get_name ().."!")
chat("Pentru orice probleme ne gãsiþi pe "..settings.homepage..".")
notice("Anunþuri: "..announcements:read())
notice("Noutãþi: "..news:read())
notice("Evenimente: "..events:read())
end
end -- state "start"
end -- quest

Tutorial:## LoginBoard
{
"name" : "LoginBoard",
"type" : "image",
"x" : (SCREEN_WIDTH - 208) / 2,
"y" : (SCREEN_HEIGHT - 410),
"image" : LOCALE_PATH + "loginwindow.sub",
"children" :
(
{
"name" : "ID_EditLine",
"type" : "editline",
"x" : 77,
"y" : 16,
"width" : 120,
"height" : 18,
"input_limit" : 16,
"enable_codepage" : 0,
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
},
{
"name" : "Password_EditLine",
"type" : "editline",
"x" : 77,
"y" : 43,
"width" : 120,
"height" : 18,
"input_limit" : 16,
"secret_flag" : 1,
"enable_codepage" : 0,
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
},
{
"name" : "LoginButton",
"type" : "button",
"x" : 15,
"y" : 65,
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.LOGIN_CONNECT,
},
{
"name" : "LoginExitButton",
"type" : "button",
"x" : 105,
"y" : 65,
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.LOGIN_EXIT,
},
),
},
Adauga sub:
{
"name" : "anunturi",
"type" : "thinboard",
"x" : -500,
"y" : SCREEN_HEIGHT - 500,
"width" : 200,
"height" : 300,
"horizontal_align" : "center",
"children" :
(
## Title
{
"name" : "Title",
"type" : "text",
"x" : 0,
"y" : 12,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "Anunturi",
},
## Horizontal
{
"name" : "HorizontalLine1",
"type" : "line",
"x" : 10,
"y" : 34,
"width" : 180,
"height" : 0,
"color" : 0xff777777,
},
{
"name" : "text1",
"type" : "text",
"x" : 0,
"y" : 50,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "Salut
",
},
{
"name" : "text2",
"type" : "text",
"x" : 0,
"y" : 70,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "Ce mai faci?
",
},
{
"name" : "text3",
"type" : "text",
"x" : 0,
"y" : 90,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "Eu sunt Robert",
},
),
},
Ai grja la TAB-uri!{
"name" : "text3",
"type" : "text",
"x" : 0,
"y" : 90,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "Eu sunt Robert",
},
Asta:
{
"name" : "text4",
"type" : "text",
"x" : 0,
"y" : 110,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "pam pam",
},
Modifici doar acolo la name. Si "y". Adaugi cu cate 20 in plus.
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori