[EEB]Fazer News antes do MainMenu :D
+3
Lucas Roberto
nicholas
~Pain
7 participantes
MMORPG Brasil :: OPEN SOURCE ENGINES :: Outras Engines :: Elysium :: Tutoriais
Página 1 de 1
[EEB]Fazer News antes do MainMenu :D
Olá, estava observando aqui no VB,e pensei em criar um News antes do MainMenu,breve colocarei o tutorial do site ;D
-
Parte do site adicionada
Bom,dê um Ctrl+F e digite frmSendGetData.Visible = True dê enter. Substitua a sub toda por:
Antes de tudo dê Ctrl + T,e selecione Microsoft Internet Controls.
Agora crie uma nova form,e mude seu nome para frmNews. Clique 2x nela e na load dela coloque
Selecione o icone do Internet Explorer e crie um Iframe(nome do componente) no frmNews. Acabada a parte do site.
Crie um botão (ou label,se voçê quiser usar uma imagem.),e nele,coloque o seguinte codigo:
O botão que voçê acabou de criar é o botão para entrar ! Agora crie outro botão ( Sair ),e nele coloque o codigo:
Pronto ! No final deve ficar assim:
Creditos:
~Pain (Matheus T.)
-
Parte do site adicionada
Bom,dê um Ctrl+F e digite frmSendGetData.Visible = True dê enter. Substitua a sub toda por:
- Código:
Sub Main()
Dim I As Long
Dim Ending As String
ScreenMode = 0
Call InitDirectSM
frmNews.Visible = True
End Sub
Antes de tudo dê Ctrl + T,e selecione Microsoft Internet Controls.
Agora crie uma nova form,e mude seu nome para frmNews. Clique 2x nela e na load dela coloque
- Código:
WebBrowser1.Navigate "http://www.seusite.com.br"
Selecione o icone do Internet Explorer e crie um Iframe(nome do componente) no frmNews. Acabada a parte do site.
Crie um botão (ou label,se voçê quiser usar uma imagem.),e nele,coloque o seguinte codigo:
- Código:
frmNews.Visible = False
frmSendGetData.Visible = True
Call SetStatus("Checando pastas...")
DoEvents
' Check if the maps directory is there, if its not make it
If LCase(Dir(App.Path & "\mapas", vbDirectory)) <> "mapas" Then
Call MkDir(App.Path & "\Mapas")
End If
If UCase(Dir(App.Path & "\GFX", vbDirectory)) <> "GFX" Then
Call MkDir(App.Path & "\GFX")
End If
If UCase(Dir(App.Path & "\GUI", vbDirectory)) <> "GUI" Then
Call MkDir(App.Path & "\GUI")
End If
If LCase(Dir(App.Path & "\músicas", vbDirectory)) <> "músicas" Then
Call MkDir(App.Path & "\Músicas")
End If
If UCase(Dir(App.Path & "\SFX", vbDirectory)) <> "SFX" Then
Call MkDir(App.Path & "\SFX")
End If
If LCase(Dir(App.Path & "\flashs", vbDirectory)) <> "flashs" Then
Call MkDir(App.Path & "\Flashs")
End If
Dim FileName As String
FileName = App.Path & "\config.ini"
If FileExist("config.ini") Then
frmMirage.chkbubblebar.Value = Val(GetVar(FileName, "CONFIG", "SpeechBubbles"))
frmMirage.chkEmoSound.Value = Val(GetVar(FileName, "CONFIG", "EmoticonSound"))
frmMirage.chknpcname.Value = Val(GetVar(FileName, "CONFIG", "NPCName"))
frmMirage.chkplayername.Value = Val(GetVar(FileName, "CONFIG", "PlayerName"))
frmMirage.chkplayerdamage.Value = Val(GetVar(FileName, "CONFIG", "NPCDamage"))
frmMirage.chknpcdamage.Value = Val(GetVar(FileName, "CONFIG", "PlayerDamage"))
frmMirage.chkmusic.Value = Val(GetVar(FileName, "CONFIG", "Music"))
frmMirage.chkSound.Value = Val(GetVar(FileName, "CONFIG", "Sound"))
frmMirage.chkAutoScroll.Value = Val(GetVar(FileName, "CONFIG", "AutoScroll"))
If Val(GetVar(FileName, "CONFIG", "MapGrid")) = 0 Then
frmMapEditor.chkGrid.Value = 0
Else
frmMapEditor.chkGrid.Value = 1
End If
Else
Call PutVar(App.Path & "\config.ini", "IPCONFIG", "IP", "127.0.0.1")
Call PutVar(App.Path & "\config.ini", "IPCONFIG", "Porta", 4000)
Call PutVar(App.Path & "\config.ini", "CONFIG", "Conta", "")
Call PutVar(App.Path & "\config.ini", "CONFIG", "Senha", "")
Call PutVar(App.Path & "\config.ini", "CONFIG", "WebSite", "http://www.mmodev.com.br")
Call PutVar(App.Path & "\config.ini", "CONFIG", "SpeechBubbles", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "EmoticonSound", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "NPCName", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "NPCDamage", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "PlayerName", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "PlayerDamage", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "MapGrid", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "Music", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "Sound", 1)
Call PutVar(App.Path & "\config.ini", "CONFIG", "AutoScroll", 1)
End If
If FileExist("GUI\Cores.txt") = False Then
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "B", 120)
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "B", 120)
Call PutVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "B", 120)
Call PutVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "B", 120)
Call PutVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "B", 120)
Call PutVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "R", 152)
Call PutVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "G", 146)
Call PutVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "B", 120)
End If
Dim R1 As Long, G1 As Long, B1 As Long
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATBOX", "B"))
frmMirage.txtChat.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "CHATTEXTBOX", "B"))
frmMirage.txtMyTextBox.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "BACKGROUND", "B"))
frmMirage.Picture9.BackColor = RGB(R1, G1, B1)
frmMirage.Picture8.BackColor = RGB(R1, G1, B1)
frmMirage.picInv3.BackColor = RGB(R1, G1, B1)
frmMirage.itmDesc.BackColor = RGB(R1, G1, B1)
frmMirage.picWhosOnline.BackColor = RGB(R1, G1, B1)
frmMirage.picGuildAdmin.BackColor = RGB(R1, G1, B1)
frmMirage.picGuild.BackColor = RGB(R1, G1, B1)
frmMirage.picEquip.BackColor = RGB(R1, G1, B1)
frmMirage.picPlayerSpells.BackColor = RGB(R1, G1, B1)
frmMirage.picOptions.BackColor = RGB(R1, G1, B1)
frmMirage.chkbubblebar.BackColor = RGB(R1, G1, B1)
frmMirage.chkEmoSound.BackColor = RGB(R1, G1, B1)
frmMirage.chknpcname.BackColor = RGB(R1, G1, B1)
frmMirage.chkplayername.BackColor = RGB(R1, G1, B1)
frmMirage.chkplayerdamage.BackColor = RGB(R1, G1, B1)
frmMirage.chknpcdamage.BackColor = RGB(R1, G1, B1)
frmMirage.chkmusic.BackColor = RGB(R1, G1, B1)
frmMirage.chkSound.BackColor = RGB(R1, G1, B1)
frmMirage.chkAutoScroll.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "SPELLLIST", "B"))
frmMirage.lstSpells.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "WHOLIST", "B"))
frmMirage.lstOnline.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "FRIENDLIST", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "FRIENDLIST", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "FRIENDLIST", "B"))
frmMirage.lstFriend.BackColor = RGB(R1, G1, B1)
R1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "R"))
G1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "G"))
B1 = Val(GetVar(App.Path & "\GUI\Cores.txt", "NEWCHAR", "B"))
frmNewChar.optMale.BackColor = RGB(R1, G1, B1)
frmNewChar.optFemale.BackColor = RGB(R1, G1, B1)
Call SetStatus("Checando status...")
DoEvents
' Não estamos em jogo!
InGame = False
GettingMap = True
InEditor = False
InSpeechEditor = False
InItemsEditor = False
InNpcEditor = False
InShopEditor = False
InEmoticonEditor = False
InArrowEditor = False
InSpawnEditor = False
frmMirage.picItems.Picture = LoadPicture(App.Path & "\GFX\Itens.bmp")
frmSpriteChange.Picsprites.Picture = LoadPicture(App.Path & "\GFX\Sprites.bmp")
Call SetStatus("Inicializando Configurações de TCP...")
DoEvents
Call TcpInit
frmMainMenu.Visible = True
frmSendGetData.Visible = False
O botão que voçê acabou de criar é o botão para entrar ! Agora crie outro botão ( Sair ),e nele coloque o codigo:
- Código:
Call GameDestroy
Pronto ! No final deve ficar assim:
Creditos:
~Pain (Matheus T.)
Última edição por Ricardo XD em Sáb 25 Fev 2012, 07:58, editado 2 vez(es) (Motivo da edição : Parte Site Adicionada !)
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
Cara, em vez de ir direto pra tela onde tem, Logar,sair e etc, ele vai para outra form, com News entende ? So que a parte do site ainda não foi posta ;D
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
sem Utilidades
voce so fez um form e pois codigos simples
como vai editar mesagens ?
não tem --'
e pra fazer site de Browser e facil --'
voce so fez um form e pois codigos simples
como vai editar mesagens ?
não tem --'
e pra fazer site de Browser e facil --'
Re: [EEB]Fazer News antes do MainMenu :D
Amigo, voçê ate pode saber criar um simples Iframe,e este codigo é pra ajudar pessoas novas ;*
Mas mesmo assim obrigado por comentar '-'
E se percebe que não é PARA EDITAR NEWS,e sim para colocar um site antes tipo o Viciados DBZ.
Mas mesmo assim obrigado por comentar '-'
E se percebe que não é PARA EDITAR NEWS,e sim para colocar um site antes tipo o Viciados DBZ.
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
Obrigado hardsfree É mais facil pra ver o site sem abrir navegador
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
Sem querer ofender compensa fazer 1 web broser depois add um botão com o comando shell(" nome do exe do jogo ")
SkyZero- Membro Veterano
- Mensagens : 890
Re: [EEB]Fazer News antes do MainMenu :D
Nem faço por Shell,realmente não compensa tanto mas é de rapido acesso a um jogo cujo player não saiba o site.
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
sim tem seu contras e seus pros ;
mas só dei minha opinião ;
mas só dei minha opinião ;
SkyZero- Membro Veterano
- Mensagens : 890
~Pain- Novato
- Mensagens : 17
Re: [EEB]Fazer News antes do MainMenu :D
não comssegui faser poderia me ajudar Pain ?
sushi123Banido- Mensagens : 188
Re: [EEB]Fazer News antes do MainMenu :D
sushi123 escreveu:não comssegui faser poderia me ajudar Pain ?
Manu olha a data do topico :s
FullBuster- Membro Sênior
- Mensagens : 427
Tópicos semelhantes
» [News]Healando Area
» Cute News-(Sistema de postagens)
» Sistema de News na seleção de chars
» [AVALIAR]MainMenu
» [ED]Mudar o name no MainMenu
» Cute News-(Sistema de postagens)
» Sistema de News na seleção de chars
» [AVALIAR]MainMenu
» [ED]Mudar o name no MainMenu
MMORPG Brasil :: OPEN SOURCE ENGINES :: Outras Engines :: Elysium :: Tutoriais
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Dom 08 Abr 2018, 18:40 por JorgeZinhoo002
» Ojkjeeeee
Seg 10 Out 2016, 23:19 por Frozen
» Naruto Great Ninja Batle
Dom 09 Out 2016, 14:29 por GuiinhoLP
» Recrutamento de um Designer para jogo de CDZ.
Sex 23 Set 2016, 18:37 por newbie123
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:09 por Eduardo
» Projeto Dbz
Qua 31 Ago 2016, 23:46 por 157
» Avaliação - Sprites Naruto
Qua 31 Ago 2016, 17:09 por 157
» [Sprites] DBZ (Plix)
Qua 31 Ago 2016, 14:13 por 157
» Super Pack - Bleach V.2
Qua 31 Ago 2016, 13:02 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:04 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:03 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:02 por 157
» [Pedido] Contador de resets na FrmMain
Sáb 13 Ago 2016, 17:45 por killers97
» [Recrutamento]
Qua 10 Ago 2016, 23:09 por Monsters
» Ajuda erro no Cliente e Servidor do EEB 2.6!
Qua 20 Jul 2016, 19:53 por Binholx
» Como criar tilesets para Eclipse Origins 3.0 (POKÉMON)
Qua 29 Jun 2016, 19:46 por Sir Aaron
» Recursos Pokemons
Qua 29 Jun 2016, 19:34 por Sir Aaron
» erro frm flash
Qua 25 maio 2016, 13:51 por vava123
» Pedido - Pack de star wars
Qui 19 maio 2016, 05:06 por edsonpet
» [Ajuda] Sobre como por o servidor on por ip fixo
Ter 17 maio 2016, 16:14 por vava123
» Illusion Dimension - O Misterio do ID: BETA TESTE ONLINE
Sex 06 maio 2016, 20:02 por LksFlorencio
» [NSME] Naruto Shinobi Maker Engine
Qua 23 Mar 2016, 15:11 por luana1457
» Script /base,/casa Igual DBZ Forces
Dom 21 Fev 2016, 07:34 por JorgeZinhoo002
» [Pedido]Colar Tsunade item sprite eclipse origin
Qui 21 Jan 2016, 07:38 por lawllietbr
» [Pedido] Elysium
Sáb 19 Dez 2015, 11:31 por luana1457
» Naruto - Recruta
Ter 15 Dez 2015, 18:40 por Uchiha ~
» [Avaliação] - Kirito from Sword Art Online; Red and Pikachu from Pokemon.
Qua 25 Nov 2015, 13:43 por Thanakii
» [Avaliação] - Kenpachi Zaraki from Bleach; Libra Shiryu From Saint Seiya.
Qua 25 Nov 2015, 12:55 por Thanakii
» Demonstração de Sprites (Á VENDA!)
Qua 25 Nov 2015, 12:40 por Thanakii
» [Sistema de Reset]Para Eclipse .
Ter 24 Nov 2015, 16:51 por VithorUchi
» Cada Guild Nascer em Certo Mapa
Qui 12 Nov 2015, 06:13 por fabiofeijó_HIT
» Dragon Ball z Fusion A Grande Volta
Qui 29 Out 2015, 15:17 por fabiofeijó_HIT
» Ajuda com Ip fixo
Seg 26 Out 2015, 16:07 por GalaxyHells15
» Como Fazer um GUI no Eclipse Origins
Dom 18 Out 2015, 22:10 por Jeanleee
» Shisui Susanoo
Dom 18 Out 2015, 20:23 por Jeanleee
» Fantasy Art Online
Dom 18 Out 2015, 16:41 por daviih123
» Ajuda !!
Seg 05 Out 2015, 12:13 por andersonzika
» como passar o usuário e senha para o MainMenu?
Seg 28 Set 2015, 22:03 por Bëzerk
» Ru time ero 13 Type mismatch
Seg 28 Set 2015, 09:08 por andredarle
» Jarvis 1.3 Download
Qua 23 Set 2015, 18:42 por soares125
» [Avaliação/Disponibilização]Árvore 64x64
Qua 23 Set 2015, 15:15 por Over~
» Mlk's Zikas Signatures
Ter 22 Set 2015, 21:15 por Aikawa Reborn'
» Pedido de Sistemas
Dom 20 Set 2015, 18:05 por cleyton_05
» [AjudaEEB]Gerador de EXP
Qua 16 Set 2015, 14:04 por Over~
» [Avaliar] Base, Humano e Goblin.
Seg 14 Set 2015, 22:51 por .iBlaz3.
» Fabrica do Tio Cronos!
Dom 13 Set 2015, 21:31 por [ADM]Cronos
» [PixelArt] Minion - Meu malvado favorito
Dom 13 Set 2015, 12:51 por [ADM]Cronos
» [Avaliar] Goku Dragon Ball Z
Qua 05 Ago 2015, 21:36 por Setrux