Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-11-17, 11:06


cayman11







Wiek: 30
Na forum: 5089 dni
Posty: 73



Respekt: 50

Witacje. hmm mo?e kto? pomo?e?
- jak wstawi? w pierwsza zak?adk? zdj?cie o takie:


- i jeszcze jedno jak zrobi? polskie znaki: ?, ?, ? itp.?



i to tak wygl?da:






localPlayer = getLocalPlayer()

wnd_window = {}

addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ),  
    function ( theResource )
        --outputConsole( "wnd_showServerInfo called" )
        --outputConsole( " source: ".. tostring( source ) )
        --outputConsole( " resourceStarted: ".. tostring( theResource ) )
        if source == getResourceRootElement( theResource ) then
            --outputConsole( " passed if: source == resource" )
            local cmd = xmlLoadFile( "cmd.xml" )
            local cmd1 = xmlNodeGetValue( cmd )
            local member = xmlLoadFile( "member.xml" )
            local member1 = xmlNodeGetValue( member )
            local other = xmlLoadFile( "other.xml" )
            local other1 = xmlNodeGetValue( other )
            local admin = xmlLoadFile( "admin.xml" )
            local admin1 = xmlNodeGetValue( admin )
            local pyt = xmlLoadFile( "pyt.xml" )
            local pyt1 = xmlNodeGetValue( pyt )

            wnd_create( cmd1, member1, other1, admin1, pyt1 )
        end
    end
)
function wnd_create( cmd, member, other, admin, pyt )

GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Memo = {}
GUIEditor_Image = {}
GUIEditor_Label = {}
GUIEditor_Button = {}


window = guiCreateWindow(200,161,659,380,"Pomoc",false)
background = guiCreateStaticImage(0.0200,0.0400,0.9700,0.9400,"images/background.png",true,window)

GUIEditor_Button[1] = guiCreateButton(220,350,200,300,"Zamknij",false,window)

guiSetAlpha(window,1)
guiWindowSetSizable(window,false)

GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0100,0.1000,1.0,0.8050,true,window)
guiSetAlpha(GUIEditor_TabPanel[1],1)

tabcmd = guiCreateTab("Regulamin",GUIEditor_TabPanel[1])
guiSetAlpha(tabcmd,1)
GUIEditor_Memo[1] = guiCreateMemo(0.008,0.0185,0.982,0.963,cmd,true,tabcmd)
guiSetAlpha(GUIEditor_Memo[1],1)


GUIEditor_Tab[1] = guiCreateTab("Komendy",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[1],1)
GUIEditor_Memo[2] = guiCreateMemo(0.008,0.0185,0.982,0.963,member,true,GUIEditor_Tab[1])
guiSetAlpha(GUIEditor_Memo[2],1)

GUIEditor_Tab[2] = guiCreateTab("VIP",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[2],1)
GUIEditor_Memo[3] = guiCreateMemo(0.008,0.0185,0.982,0.963,other,true,GUIEditor_Tab[2])
guiSetAlpha(GUIEditor_Memo[3],1)

GUIEditor_Tab[3] = guiCreateTab("Administracja",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[3],1)
GUIEditor_Memo[4] = guiCreateMemo(0.008,0.0185,0.982,0.963,admin,true,GUIEditor_Tab[3])
guiSetAlpha(GUIEditor_Memo[4],1)

GUIEditor_Tab[4] = guiCreateTab("Tips&Tricks",GUIEditor_TabPanel[1])
guiSetAlpha(GUIEditor_Tab[3],1)
GUIEditor_Memo[5] = guiCreateMemo(0.008,0.0185,0.982,0.963,pyt,true,GUIEditor_Tab[4])
guiSetAlpha(GUIEditor_Memo[5],1)


guiMemoSetReadOnly(GUIEditor_Memo[1],true)
guiMemoSetReadOnly(GUIEditor_Memo[2],true)
guiMemoSetReadOnly(GUIEditor_Memo[3],true)
guiMemoSetReadOnly(GUIEditor_Memo[4],true)
guiMemoSetReadOnly(GUIEditor_Memo[5],true)



end


-- BIND THE TOUCH F9

function onresourceStart ()
  bindKey ("F9", "down", showUserPanel)
  guiSetVisible (window, false)
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart)




function showUserPanel ()
getVisible = guiGetVisible (window)
playerName = getPlayerName ( getLocalPlayer() )
playSound("open.wav")
if (getVisible == true) then
    guiSetVisible (window, false)
    showCursor (false)
end
addEventHandler( "onClientGUIClick", GUIEditor_Button[1], showUserPanel )
if (getVisible == false) then
    guiSetVisible (window, true)
    showCursor (true)
    addEventHandler( "onClientGUIClick", playerGridList, setGUI )
      end
end



za pomoc :piwo: :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-17, 13:53


Brzysiek

Skrypter pralek






Wiek: 28
Na forum: 5340 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

Respekt: 360
Respekt: 360Respekt: 360Respekt: 360Respekt: 360

Cytat:

- jak wstawi? w pierwsza zak?adk? zdj?cie o takie:

http://wiki.multitheftaut...eateStaticImage
Nie czekaj na gotowca, wida?, ?e nie tw?j kod :)

Cytat:


- i jeszcze jedno jak zrobi? polskie znaki: ?, ?, ? itp.?

Przekonwertuj skrypt na UTF-8 bez BOM. (Notepad++ - Format - Konwertuj na UTF-8 - Zapisz)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-17, 16:19


cayman11







Wiek: 30
Na forum: 5089 dni
Posty: 73



Respekt: 50

Cytat:


Nie czekaj na gotowca, wida?, ?e nie tw?j kod :)

oj tam oj tam :)

Cytat:

Przekonwertuj skrypt na UTF-8 bez BOM. (Notepad++ - Format - Konwertuj na UTF-8 - Zapisz)

Wielkie dzi?ki leci :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: pomoc
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku