Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local engl = xmlLoadFile ( "files/xml/english.xml" )
- local engValue = xmlNodeGetValue ( engl)
- local polsk = xmlLoadFile ( "files/xml/polski.xml" )
- local poslValue = xmlNodeGetValue ( polsk )
- local Deutsch2 = xmlLoadFile ( "files/xml/deutsch.xml" )
- local DeutschValue = xmlNodeGetValue ( Deutsch2 )
- local nederland = xmlLoadFile ( "files/xml/nederlands.xml" )
- local nederValue = xmlNodeGetValue ( nederland )
- local soum = xmlLoadFile ( "files/xml/soumi.xml" )
- local soumValue = xmlNodeGetValue ( soum )
- local swe = xmlLoadFile ( "files/xml/svenska.xml" )
- local sweValue = xmlNodeGetValue ( swe )
- local slovensk = xmlLoadFile ( "files/xml/slovenski.xml" )
- local slovValue = xmlNodeGetValue ( slovensk )
- local esti = xmlLoadFile ( "files/xml/eesti.xml" )
- local estiValue = xmlNodeGetValue ( esti )
- local latvi = xmlLoadFile ( "files/xml/latvijas.xml" )
- local latviNode = xmlNodeGetValue ( latvi )
- local dk = xmlLoadFile ( "files/xml/danske.xml" )
- local dkNode = xmlNodeGetValue ( dk )
- local nor = xmlLoadFile ( "files/xml/norsk.xml" )
- local norNode = xmlNodeGetValue ( nor )
- local it = xmlLoadFile ( "files/xml/italiano.xml" )
- local itNode = xmlNodeGetValue ( it )
- local filip = xmlLoadFile ( "files/xml/filipino.xml" )
- local filipNode = xmlNodeGetValue( filip )
- local bahasa = xmlLoadFile ( "files/xml/bahasa.xml" )
- local bahNode = xmlNodeGetValue ( bahasa )
- local touni = xmlLoadFile ( "files/xml/tounisi.xml" )
- local touniNode = xmlNodeGetValue ( touni )
- local espan0l = xmlLoadFile ( "files/xml/espanol.xml" )
- local espanolNode = xmlNodeGetValue ( espan0l )
- local arab = xmlLoadFile ( "files/xml/arabic.xml" )
- local arabicNode = xmlNodeGetValue ( arab )
- local staff = xmlLoadFile ( "files/xml/staff.xml" )
- local staffText = xmlNodeGetValue ( staff )
- local info = xmlLoadFile ( "files/xml/info.xml" )
- local infoText = xmlNodeGetValue ( info )
- local faq = xmlLoadFile ( "files/xml/faq.xml" )
- local faqText = xmlNodeGetValue ( faq )
- showCursor ( true )
- mainWindow = guiCreateWindow(0.245,0.1922,0.5175,0.7,"",true)
- English = guiCreateButton(0.0229,0.0333,0.1135,0.0556,"English",true,mainWindow)
- Polski = guiCreateButton(0.0229,0.1175,0.1135,0.0556,"Polski",true,mainWindow)
- Deutsch = guiCreateButton(0.0229,0.2079,0.1135,0.0556,"Deutsch",true,mainWindow)
- Nederlands = guiCreateButton(0.0242,0.2921,0.1135,0.0556,"Nederlands",true,mainWindow)
- Soumi = guiCreateButton(0.0242,0.3825,0.1135,0.0556,"Soumi",true,mainWindow)
- Svenska = guiCreateButton(0.0229,0.4667,0.1135,0.0556,"Svenska",true,mainWindow)
- Slovenski = guiCreateButton(0.0229,0.5508,0.1135,0.0556,"Slovenski",true,mainWindow)
- Eesti = guiCreateButton(0.0229,0.6286,0.1135,0.0556,"Eesti",true,mainWindow)
- Latvijas = guiCreateButton(0.0229,0.7127,0.1135,0.0556,"Latvijas",true,mainWindow)
- Dansk = guiCreateButton(0.0229,0.8063,0.1135,0.0556,"Dansk",true,mainWindow)
- Norsk = guiCreateButton(0.0242,0.8905,0.1135,0.0556,"Norsk",true,mainWindow)
- Italiano = guiCreateButton(0.8671,0.0349,0.1135,0.0556,"Italiano",true,mainWindow)
- Filipino = guiCreateButton(0.8671,0.1175,0.1135,0.0556,"Filipino",true,mainWindow)
- BahasaIndonesia = guiCreateButton(0.8659,0.1968,0.1135,0.0556,"Bahasa Indonesia",true,mainWindow)
- Tounisi = guiCreateButton(0.8659,0.2857,0.1135,0.0556,"Tounisi",true,mainWindow)
- Espanol = guiCreateButton(0.8647,0.3698,0.1135,0.0556,"Espanol",true,mainWindow)
- Arabic = guiCreateButton(0.8647,0.4524,0.1135,0.0556,"Arabic",true,mainWindow)
- StaffB = guiCreateButton(0.2923,0.0333,0.1135,0.0556,"Staff Roster",true,mainWindow)
- FaqB = guiCreateButton(0.4493,0.0333,0.1135,0.0556,"FAQ",true,mainWindow)
- InfoB = guiCreateButton(0.6002,0.0333,0.1135,0.0556,"Overview",true,mainWindow)
- CloseB = guiCreateButton(0.9167,0.9302,0.0592,0.0492,"X",true,mainWindow)
- theMemo = guiCreateMemo(0.1449,0.0937,0.7174,0.8556,"Hello and welcome to the Information Panel.\n\nTo see the rules in your language click on the button named your language.\nCan't find your language? If you would like it to be added, contact an admin or contact us at our website (WEBSITE HERE)\n\nIn the meanwhile, you can read the rules in English, this is an English speaking server afterall.\n\nYou can also find information as Staff Roster, FAQ and Overview but those are only avaliable in English.",true,mainWindow)
- function buttonClick(button)
- if (button) ~= "left" then return end
- if ( source == CloseB ) then
- guiSetVisible ( mainWindow, false )
- showCursor ( false )
- elseif (source == English) then
- guiSetText( theMemo, tostring ( engValue ) )
- elseif ( source == Polski ) then
- guiSetText( theMemo, tostring ( poslValue ) )
- elseif ( source == Nederlands ) then
- guiSetText( theMemo, tostring ( nederValue ) )
- elseif ( source == Deutsch ) then
- guiSetText( theMemo, tostring ( DeutschValue ) )
- elseif ( source == Soumi ) then
- guiSetText( theMemo, tostring ( soumValue ) )
- elseif ( source == Svenska ) then
- guiSetText( theMemo, tostring ( sweValue ) )
- elseif ( source == Slovenski ) then
- guiSetText( theMemo, tostring ( slovValue ) )
- elseif ( source == Eesti ) then
- guiSetText( theMemo, tostring ( estiValue ) )
- elseif ( source == Latvijas ) then
- guiSetText( theMemo, tostring ( latviNode ) )
- elseif ( source == Dansk ) then
- guiSetText( theMemo, tostring ( dkNode ) )
- elseif ( source == Norsk ) then
- guiSetText( theMemo, tostring ( norNode ) )
- elseif ( source == Italiano ) then
- guiSetText( theMemo, tostring ( itNode ) )
- elseif ( source == Filipino ) then
- guiSetText( theMemo, tostring ( filipNode ) )
- elseif ( source == BahasaIndonesia ) then
- guiSetText( theMemo, tostring ( bahNode ) )
- elseif ( source == Tounisi ) then
- guiSetText( theMemo, tostring ( touniNode ) )
- elseif ( source == Espanol ) then
- guiSetText( theMemo, tostring ( espanolNode ) )
- elseif ( source == Arabic ) then
- guiSetText( theMemo, tostring ( arabicNode ) )
- elseif ( source == StaffB ) then
- guiSetText( theMemo, tostring ( staffText ) )
- elseif ( source == FaqB ) then
- guiSetText( theMemo, tostring ( faqText ) )
- elseif ( source == InfoB ) then
- guiSetText( theMemo, tostring ( infoText ) )
- end
- end
- addEventHandler("onClientGUIClick", resourceRoot, buttonClick, true)
- function showGUI()
- if (guiGetVisible ( mainWindow )) then
- showCursor(false)
- guiSetVisible ( mainWindow, false )
- else
- showCursor( true )
- guiSetVisible( mainWindow, true )
- end
- end
- bindKey ( "F1", "down", showGUI)
Advertisement
Add Comment
Please, Sign In to add comment