Ir para conteúdo
  • 0

POKEDEX


guilherme Silva

Pergunta

Ola primeira mente eu queria que voce me ajudassem estava vendo a pokedex ela esta abrindo no quando superio esquerdo queria que ela abrisse no meio, e outra ajuda queria sabe como passar a imagen da pokedex para atras das outras imagen do pokemon.

 

pokedex.otui

 

Poke < UIButton
  width: 160
  height: 160
  anchors.top: parent.top
  margin-top: 80
  font: verdana-11px-rounded
  color: #FFFFFF
  text-align: right
  
DesDex < TextList
  width: 300
  height: 180
  anchors.top: parent.top
  margin-top: 270
  margin-left: 20
  padding: 1
  vertical-scrollbar: bardesc
  focusable: false

Dexs < UIWidget
  height: 14
  background-color: alpha
  &updateOnStates: |
    function(self)
      local children = self:getChildren()
      for i=1,#children do
        children:setOn(self:isFocused())
      end
    end
  @onFocusChange: self:updateOnStates()
  @onSetup: self:updateOnStates()

  $focus:
    background-color: #ffffff22

Pokes < TextList
  width: 240
  height: 360
  anchors.top: parent.top
  margin-top: 80
  margin-left: 400
  padding: 1
  focusable: false
  vertical-scrollbar: bar
  auto-focus: first

Close < Button
  !text: tr('Fechar')
  width: 64
  anchors.top: parent.top
  anchors.left: parent.left
  margin-top: 60
  margin-left: 574
  @onClick: hide()

Bar < VerticalScrollBar
  height: 360
  step: 14
  pixels-scroll: true

BarDesc < VerticalScrollBar
  height: 180
  step: 14
  pixels-scroll: true
  
Pokedex < UIButton
  width: 700
  height: 450
  anchors.top: parent.top
  margin-top: 30

UIWindow
  id: optionsWindow
  size: 700  700
  image-fixed-ratio: true

  Poke
    id: poke
    anchors.left: parent.left
    margin-left: 60

  Close
    id: close

  Pokes
    id: pokes
    anchors.left: parent.left

  Bar
    id: bar
    anchors.left: parent.left
    anchors.top: parent.left
    margin-top: 85
    margin-left: 656

  BarDesc
    id: bardesc
    anchors.left: parent.left
    anchors.top: parent.left
    margin-top: 280
    margin-left: 350

  Dexs
    id: dex
    anchors.left: parent.left

  DesDex
    id: desdex
    anchors.left: parent.left

  Pokedex
    id: pokedex
    image-source: poke/pokedex.png

 

Dou REP+ quem ajudar

 

image.thumb.png.b10a5d53312b2d9a9a8524bb95b3c8eb.png

 

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

Ah ok 

 

-- Public functions
function init()


newpokedex = {
["Bulbasaur"] = {gender = 875, level = 18, storage = 1001, stoCatch = 666001},
["Ivysaur"] = {gender = 875, level = 38, storage = 1002, stoCatch = 666002},
["Venusaur"] = {gender = 875, level = 75, storage = 1003, stoCatch = 666003},
["Charmander"] = {gender = 875, level = 18, storage = 1004, stoCatch = 666004},
["Charmeleon"] = {gender = 875, level = 38, storage = 1005, stoCatch = 666005},
["Charizard"] = {gender = 875, level = 75, storage = 1006, stoCatch = 666006},
["Squirtle"] = {gender = 875, level = 18, storage = 1007, stoCatch = 666007},
["Wartortle"] = {gender = 875, level = 38, storage = 1008, stoCatch = 666008},
["Blastoise"] = {gender = 875, level = 75, storage = 1009, stoCatch = 666009},
["Caterpie"] = {gender = 500, level = 3, storage = 1010, stoCatch = 666010},
["Metapod"] = {gender = 500, level = 10, storage = 1011, stoCatch = 666011},
["Butterfree"] = {gender = 500, level = 30, storage = 1012, stoCatch = 666012},
["Weedle"] = {gender = 500, level = 3, storage = 1013, stoCatch = 666013},
["Kakuna"] = {gender = 500, level = 10, storage = 1014, stoCatch = 666014},
["Beedrill"] = {gender = 500, level = 30, storage = 1015, stoCatch = 666015},
["Pidgey"] = {gender = 500, level = 5, storage = 1016, stoCatch = 666016},
["Pidgeotto"] = {gender = 500, level = 20, storage = 1017, stoCatch = 666017},
["Pidgeot"] = {gender = 500, level = 60, storage = 1018, stoCatch = 666018},
["Rattata"] = {gender = 500, level = 3, storage = 1019, stoCatch = 666019},
["Raticate"] = {gender = 500, level = 20, storage = 1020, stoCatch = 666020},
["Spearow"] = {gender = 500, level = 5, storage = 1021, stoCatch = 666021},
["Fearow"] = {gender = 500, level = 50, storage = 1022, stoCatch = 666022},
["Ekans"] = {gender = 500, level = 12, storage = 1023, stoCatch = 666023},
["Arbok"] = {gender = 500, level = 30, storage = 1024, stoCatch = 666024},
["Pikachu"] = {gender = 500, level = 20, storage = 1025, stoCatch = 666025},
["Raichu"] = {gender = 500, level = 50, storage = 1026, stoCatch = 666026},
["Sandshrew"] = {gender = 500, level = 18, storage = 1027, stoCatch = 666027},
["Sandslash"] = {gender = 500, level = 55, storage = 1028, stoCatch = 666028},
["Nidoran Female"] = {gender = 0, level = 10, storage = 1029, stoCatch = 666029},
["Nidorina"] = {gender = 0, level = 25, storage = 1030, stoCatch = 666030},
["Nidoqueen"] = {gender = 0, level = 65, storage = 1031, stoCatch = 666031},
["Nidoran Male"] = {gender = 1000, level = 10, storage = 1032, stoCatch = 666032},
["Nidorino"] = {gender = 1000, level = 25, storage = 1033, stoCatch = 666033},
["Nidoking"] = {gender = 1000, level = 65, storage = 1034, stoCatch = 666034},
["Clefairy"] = {gender = 250, level = 10, storage = 1035, stoCatch = 666035},
["Clefable"] = {gender = 250, level = 35, storage = 1036, stoCatch = 666036},
["Vulpix"] = {gender = 250, level = 16, storage = 1037, stoCatch = 666037},
["Ninetales"] = {gender = 250, level = 65, storage = 1038, stoCatch = 666038},
["Jigglypuff"] = {gender = 250, level = 10, storage = 1039, stoCatch = 666039},
["Wigglytuff"] = {gender = 250, level = 42, storage = 1040, stoCatch = 666040},
["Zubat"] = {gender = 500, level = 5, storage = 1041, stoCatch = 666041},
["Golbat"] = {gender = 500, level = 30, storage = 1042, stoCatch = 666042},
["Oddish"] = {gender = 500, level = 5, storage = 1043, stoCatch = 666043},
["Gloom"] = {gender = 500, level = 18, storage = 1044, stoCatch = 666044},
["Vileplume"] = {gender = 500, level = 50, storage = 1045, stoCatch = 666045},
["Paras"] = {gender = 500, level = 5, storage = 1046, stoCatch = 666046},
["Parasect"] = {gender = 500, level = 40, storage = 1047, stoCatch = 666047},
["Venonat"] = {gender = 500, level = 14, storage = 1048, stoCatch = 666048},
["Venomoth"] = {gender = 500, level = 40, storage = 1049, stoCatch = 666049},
["Diglett"] = {gender = 500, level = 5, storage = 1050, stoCatch = 666050},
["Dugtrio"] = {gender = 500, level = 35, storage = 1051, stoCatch = 666051},
["Meowth"] = {gender = 500, level = 12, storage = 1052, stoCatch = 666052},
["Persian"] = {gender = 500, level = 25, storage = 1053, stoCatch = 666053},
["Psyduck"] = {gender = 500, level = 12, storage = 1054, stoCatch = 666054},
["Golduck"] = {gender = 500, level = 55, storage = 1055, stoCatch = 666055},
["Mankey"] = {gender = 500, level = 10, storage = 1056, stoCatch = 666056},
["Primeape"] = {gender = 500, level = 45, storage = 1057, stoCatch = 666057},
["Growlithe"] = {gender = 750, level = 16, storage = 1058, stoCatch = 666058},
["Arcanine"] = {gender = 750, level = 70, storage = 1059, stoCatch = 666059},
["Poliwag"] = {gender = 500, level = 5, storage = 1060, stoCatch = 666060},
["Poliwhirl"] = {gender = 500, level = 20, storage = 1061, stoCatch = 666061},
["Poliwrath"] = {gender = 500, level = 60, storage = 1062, stoCatch = 666062},
["Abra"] = {gender = 750, level = 12, storage = 1063, stoCatch = 666063},
["Kadabra"] = {gender = 750, level = 40, storage = 1064, stoCatch = 666064},
["Alakazam"] = {gender = 750, level = 70, storage = 1065, stoCatch = 666065},
["Machop"] = {gender = 750, level = 16, storage = 1066, stoCatch = 666066},
["Machoke"] = {gender = 750, level = 38, storage = 1067, stoCatch = 666067},
["Machamp"] = {gender = 750, level = 70, storage = 1068, stoCatch = 666068},
["Bellsprout"] = {gender = 500, level = 5, storage = 1069, stoCatch = 666069},
["Weepinbell"] = {gender = 500, level = 18, storage = 1070, stoCatch = 666070},
["Victreebel"] = {gender = 500, level = 50, storage = 1071, stoCatch = 666071},
["Tentacool"] = {gender = 500, level = 12, storage = 1072, stoCatch = 666072},
["Tentacruel"] = {gender = 500, level = 70, storage = 1073, stoCatch = 666073},
["Geodude"] = {gender = 500, level = 15, storage = 1074, stoCatch = 666074},
["Graveler"] = {gender = 500, level = 40, storage = 1075, stoCatch = 666075},
["Golem"] = {gender = 500, level = 70, storage = 1076, stoCatch = 666076},
["Ponyta"] = {gender = 500, level = 15, storage = 1077, stoCatch = 666077},
["Rapidash"] = {gender = 500, level = 55, storage = 1078, stoCatch = 666078},
["Slowpoke"] = {gender = 500, level = 12, storage = 1079, stoCatch = 666079},
["Slowbro"] = {gender = 500, level = 45, storage = 1080, stoCatch = 666080},
["Magnemite"] = {gender = -1, level = 15, storage = 1081, stoCatch = 666081},
["Magneton"] = {gender = -1, level = 38, storage = 1082, stoCatch = 666082},
["Farfetch'd"] = {gender = 500, level = 35, storage = 1083, stoCatch = 666083},
["Doduo"] = {gender = 500, level = 12, storage = 1084, stoCatch = 666084},
["Dodrio"] = {gender = 500, level = 42, storage = 1085, stoCatch = 666085},
["Seel"] = {gender = 500, level = 14, storage = 1086, stoCatch = 666086},
["Dewgong"] = {gender = 500, level = 55, storage = 1087, stoCatch = 666087},
["Grimer"] = {gender = 500, level = 12, storage = 1088, stoCatch = 666088},
["Muk"] = {gender = 500, level = 30, storage = 1089, stoCatch = 666089},
["Shellder"] = {gender = 500, level = 5, storage = 1090, stoCatch = 666090},
["Cloyster"] = {gender = 500, level = 65, storage = 1091, stoCatch = 666091},
["Gastly"] = {gender = 500, level = 14, storage = 1092, stoCatch = 666092},
["Haunter"] = {gender = 500, level = 40, storage = 1093, stoCatch = 666093},
["Gengar"] = {gender = 500, level = 70, storage = 1094, stoCatch = 666094},
["Onix"] = {gender = 500, level = 50, storage = 1095, stoCatch = 666095},
["Drowzee"] = {gender = 500, level = 18, storage = 1096, stoCatch = 666096},
["Hypno"] = {gender = 500, level = 50, storage = 1097, stoCatch = 666097},
["Krabby"] = {gender = 500, level = 5, storage = 1098, stoCatch = 666098},
["Kingler"] = {gender = 500, level = 35, storage = 1099, stoCatch = 666099},
["Voltorb"] = {gender = -1, level = 14, storage = 1100, stoCatch = 666100},
["Electrode"] = {gender = -1, level = 38, storage = 1101, stoCatch = 666101},
["Exeggcute"] = {gender = 500, level = 8, storage = 1102, stoCatch = 666102},
["Exeggutor"] = {gender = 500, level = 48, storage = 1103, stoCatch = 666103},
["Cubone"] = {gender = 500, level = 18, storage = 1104, stoCatch = 666104},
["Marowak"] = {gender = 500, level = 45, storage = 1105, stoCatch = 666105},
["Hitmonlee"] = {gender = 1000, level = 60, storage = 1106, stoCatch = 666106},
["Hitmonchan"] = {gender = 1000, level = 60, storage = 1107, stoCatch = 666107},
["Lickitung"] = {gender = 500, level = 45, storage = 1108, stoCatch = 666108},
["Koffing"] = {gender = 500, level = 15, storage = 1109, stoCatch = 666109},
["Weezing"] = {gender = 500, level = 30, storage = 1110, stoCatch = 666110},
["Rhyhorn"] = {gender = 500, level = 35, storage = 1111, stoCatch = 666111},
["Rhydon"] = {gender = 500, level = 65, storage = 1112, stoCatch = 666112},
["Chansey"] = {gender = 0, level = 50, storage = 1113, stoCatch = 666113},
["Tangela"] = {gender = 500, level = 35, storage = 1114, stoCatch = 666114},
["Kangaskhan"] = {gender = 0, level = 65, storage = 1115, stoCatch = 666115},
["Horsea"] = {gender = 500, level = 5, storage = 1116, stoCatch = 666116},
["Seadra"] = {gender = 500, level = 40, storage = 1117, stoCatch = 666117},
["Goldeen"] = {gender = 500, level = 10, storage = 1118, stoCatch = 666118},
["Seaking"] = {gender = 500, level = 25, storage = 1119, stoCatch = 666119},
["Staryu"] = {gender = -1, level = 15, storage = 1120, stoCatch = 666120},
["Starmie"] = {gender = -1, level = 38, storage = 1121, stoCatch = 666121},
["Mr. Mime"] = {gender = 500, level = 45, storage = 1122, stoCatch = 666122},
["Scyther"] = {gender = 500, level = 60, storage = 1123, stoCatch = 666123},
["Jynx"] = {gender = 0, level = 55, storage = 1124, stoCatch = 666124},
["Electabuzz"] = {gender = 750, level = 60, storage = 1125, stoCatch = 666125},
["Magmar"] = {gender = 750, level = 60, storage = 1126, stoCatch = 666126},
["Pinsir"] = {gender = 500, level = 42, storage = 1127, stoCatch = 666127},
["Tauros"] = {gender = 1000, level = 40, storage = 1128, stoCatch = 666128},
["Magikarp"] = {gender = 500, level = 1, storage = 1129, stoCatch = 666129},
["Gyarados"] = {gender = 500, level = 75, storage = 1130, stoCatch = 666130},
["Lapras"] = {gender = 500, level = 65, storage = 1131, stoCatch = 666131},
["Ditto"] = {gender = -1, level = 40, storage = 1132, stoCatch = 666132},
["Eevee"] = {gender = 875, level = 20, storage = 1133, stoCatch = 666133},
["Vaporeon"] = {gender = 875, level = 55, storage = 1134, stoCatch = 666134},
["Jolteon"] = {gender = 875, level = 55, storage = 1135, stoCatch = 666135},
["Flareon"] = {gender = 875, level = 55, storage = 1136, stoCatch = 666136},
["Porygon"] = {gender = -1, level = 45, storage = 1137, stoCatch = 666137},
["Omanyte"] = {gender = 875, level = 20, storage = 1138, stoCatch = 666138},
["Omastar"] = {gender = 875, level = 70, storage = 1139, stoCatch = 666139},
["Kabuto"] = {gender = 875, level = 20, storage = 1140, stoCatch = 666140},
["Kabutops"] = {gender = 875, level = 70, storage = 1141, stoCatch = 666141},
["Aerodactyl"] = {gender = 875, level = 85, storage = 1142, stoCatch = 666142},
["Snorlax"] = {gender = 875, level = 85, storage = 1143, stoCatch = 666143},
["Articuno"] = {gender = 500, level = 100, storage = 1144, stoCatch = 666144},
["Zapdos"] = {gender = 500, level = 100, storage = 1145, stoCatch = 666145},
["Moltres"] = {gender = 500, level = 100, storage = 1146, stoCatch = 666146},
["Dratini"] = {gender = 500, level = 15, storage = 1147, stoCatch = 666147},
["Dragonair"] = {gender = 500, level = 45, storage = 1148, stoCatch = 666148},
["Dragonite"] = {gender = 500, level = 85, storage = 1149, stoCatch = 666149},
["Mewtwo"] = {gender = 500, level = 100, storage = 1150, stoCatch = 666150},
["Mew"] = {gender = 500, level = 100, storage = 1151, stoCatch = 666151},
["Shiny Venusaur"] = {gender = 875, level = 75, storage = 10030, stoCatch = 666154},
["Shiny Charizard"] = {gender = 875, level = 75, storage = 10060, stoCatch = 666157},
["Shiny Blastoise"] = {gender = 875, level = 75, storage = 10090, stoCatch = 666160},
["Shiny Butterfree"] = {gender = 500, level = 30, storage = 10120, stoCatch = 666163},
["Shiny Beedrill"] = {gender = 500, level = 30, storage = 10150, stoCatch = 666166},
["Shiny Pidgeot"] = {gender = 500, level = 60, storage = 10180, stoCatch = 666169},
["Shiny Rattata"] = {gender = 500, level = 3, storage = 10190, stoCatch = 666170},
["Shiny Raticate"] = {gender = 500, level = 20, storage = 10200, stoCatch = 666171},
["Shiny Fearow"] = {gender = 500, level = 50, storage = 10220, stoCatch = 666173},
["Shiny Raichu"] = {gender = 500, level = 50, storage = 10260, stoCatch = 666177},
["Shiny Nidoking"] = {gender = 1000, level = 65, storage = 10340, stoCatch = 666185},
["Shiny Zubat"] = {gender = 500, level = 5, storage = 10410, stoCatch = 666192},
["Shiny Golbat"] = {gender = 500, level = 30, storage = 10420, stoCatch = 666193},
["Shiny Oddish"] = {gender = 500, level = 5, storage = 10430, stoCatch = 666194},
["Shiny Vileplume"] = {gender = 500, level = 50, storage = 10450, stoCatch = 666196},
["Shiny Paras"] = {gender = 500, level = 5, storage = 10460, stoCatch = 666197},
["Shiny Parasect"] = {gender = 500, level = 40, storage = 10470, stoCatch = 666198},
["Shiny Venonat"] = {gender = 500, level = 14, storage = 10480, stoCatch = 666199},
["Shiny Venomoth"] = {gender = 500, level = 40, storage = 10490, stoCatch = 666200},
["Shiny Growlithe"] = {gender = 750, level = 16, storage = 10580, stoCatch = 666209},
["Shiny Arcanine"] = {gender = 750, level = 70, storage = 10590, stoCatch = 666210},
["Shiny Abra"] = {gender = 750, level = 12, storage = 10630, stoCatch = 666214},
["Shiny Alakazam"] = {gender = 750, level = 70, storage = 10650, stoCatch = 666216},
["Shiny Tentacool"] = {gender = 500, level = 12, storage = 10720, stoCatch = 666223},
["Shiny Tentacruel"] = {gender = 500, level = 70, storage = 10730, stoCatch = 666224},
["Shiny Golem"] = {gender = 500, level = 70, storage = 10760, stoCatch = 666227},
["Shiny Farfetch'd"] = {gender = 500, level = 35, storage = 10830, stoCatch = 666234},
["Shiny Grimer"] = {gender = 500, level = 12, storage = 10880, stoCatch = 666239},
["Shiny Muk"] = {gender = 500, level = 30, storage = 10890, stoCatch = 666240},
["Shiny Gengar"] = {gender = 500, level = 70, storage = 10940, stoCatch = 666245},
["Shiny Onix"] = {gender = 500, level = 50, storage = 10950, stoCatch = 666246},
["Shiny Hypno"] = {gender = 500, level = 50, storage = 10970, stoCatch = 666248},
["Shiny Krabby"] = {gender = 500, level = 5, storage = 10980, stoCatch = 666249},
["Shiny Kingler"] = {gender = 500, level = 35, storage = 10990, stoCatch = 666250},
["Shiny Voltorb"] = {gender = -1, level = 14, storage = 11000, stoCatch = 666251},
["Shiny Electrode"] = {gender = -1, level = 38, storage = 11010, stoCatch = 666252},
["Shiny Cubone"] = {gender = 500, level = 18, storage = 11040, stoCatch = 666255},
["Shiny Marowak"] = {gender = 500, level = 45, storage = 11050, stoCatch = 666256},
["Shiny Hitmonlee"] = {gender = 1000, level = 60, storage = 11060, stoCatch = 666257},
["Shiny Hitmonchan"] = {gender = 1000, level = 60, storage = 11070, stoCatch = 666258},
["Shiny Tangela"] = {gender = 500, level = 35, storage = 11140, stoCatch = 666265},
["Shiny Horsea"] = {gender = 500, level = 5, storage = 11160, stoCatch = 666267},
["Shiny Seadra"] = {gender = 500, level = 40, storage = 11170, stoCatch = 666268},
["Shiny Scyther"] = {gender = 500, level = 60, storage = 11230, stoCatch = 666274},
["Shiny Jynx"] = {gender = 0, level = 55, storage = 11240, stoCatch = 666275},
["Shiny Electabuzz"] = {gender = 750, level = 60, storage = 11250, stoCatch = 666276},
["Shiny Pinsir"] = {gender = 500, level = 42, storage = 11270, stoCatch = 666278},
["Shiny Magikarp"] = {gender = 500, level = 1, storage = 11290, stoCatch = 666280},
["Shiny Gyarados"] = {gender = 500, level = 75, storage = 11300, stoCatch = 666281},
["Shiny Vaporeon"] = {gender = 875, level = 55, storage = 11340, stoCatch = 666285},
["Shiny Jolteon"] = {gender = 875, level = 55, storage = 11350, stoCatch = 666286},
["Shiny Flareon"] = {gender = 875, level = 55, storage = 11360, stoCatch = 666287},
["Shiny Snorlax"] = {gender = 875, level = 85, storage = 11430, stoCatch = 666294},
["Shiny Dratini"] = {gender = 500, level = 15, storage = 11470, stoCatch = 666298},
["Shiny Dragonair"] = {gender = 500, level = 45, storage = 11480, stoCatch = 666299},
["Shiny Dragonite"] = {gender = 500, level = 85, storage = 11490, stoCatch = 666300},
["Chikorita"] = {gender = 875, level = 18, storage = 1152, stoCatch = 666303},
["Bayleef"] = {gender = 875, level = 38, storage = 1153, stoCatch = 666304},
["Meganium"] = {gender = 875, level = 75, storage = 1154, stoCatch = 666305},
["Cyndaquil"] = {gender = 875, level = 18, storage = 1155, stoCatch = 666306},
["Quilava"] = {gender = 875, level = 38, storage = 1156, stoCatch = 666307},
["Typhlosion"] = {gender = 875, level = 75, storage = 1157, stoCatch = 666308},
["Totodile"] = {gender = 875, level = 18, storage = 1158, stoCatch = 666309},
["Croconaw"] = {gender = 875, level = 38, storage = 1159, stoCatch = 666310},
["Feraligatr"] = {gender = 875, level = 75, storage = 1160, stoCatch = 666311},
["Sentret"] = {gender = 500, level = 3, storage = 1161, stoCatch = 666312},
["Furret"] = {gender = 500, level = 28, storage = 1162, stoCatch = 666313},
["Hoothoot"] = {gender = 500, level = 3, storage = 1163, stoCatch = 666314},
["Noctowl"] = {gender = 500, level = 38, storage = 1164, stoCatch = 666315},
["Ledyba"] = {gender = 500, level = 12, storage = 1165, stoCatch = 666316},
["Ledian"] = {gender = 500, level = 30, storage = 1166, stoCatch = 666317},
["Spinarak"] = {gender = 500, level = 15, storage = 1167, stoCatch = 666318},
["Ariados"] = {gender = 500, level = 42, storage = 1168, stoCatch = 666319},
["Crobat"] = {gender = 500, level = 70, storage = 1169, stoCatch = 666320},
["Chinchou"] = {gender = 500, level = 14, storage = 1170, stoCatch = 666321},
["Lanturn"] = {gender = 500, level = 38, storage = 1171, stoCatch = 666322},
["Pichu"] = {gender = 500, level = 3, storage = 1172, stoCatch = 666323},
["Cleffa"] = {gender = 500, level = 3, storage = 1173, stoCatch = 666324},
["Igglybuff"] = {gender = 500, level = 3, storage = 1174, stoCatch = 666325},
["Togepi"] = {gender = 500, level = 10, storage = 1175, stoCatch = 666326},
["Togetic"] = {gender = 875, level = 45, storage = 1176, stoCatch = 666327},
["Natu"] = {gender = 500, level = 15, storage = 1177, stoCatch = 666328},
["Xatu"] = {gender = 500, level = 45, storage = 1178, stoCatch = 666329},
["Mareep"] = {gender = 500, level = 12, storage = 1179, stoCatch = 666330},
["Flaaffy"] = {gender = 500, level = 30, storage = 1180, stoCatch = 666331},
["Ampharos"] = {gender = 500, level = 65, storage = 1181, stoCatch = 666332},
["Bellossom"] = {gender = 500, level = 50, storage = 1182, stoCatch = 666333},
["Marill"] = {gender = 500, level = 14, storage = 1183, stoCatch = 666334},
["Azumarill"] = {gender = 500, level = 28, storage = 1184, stoCatch = 666335},
["Sudowoodo"] = {gender = 500, level = 46, storage = 1185, stoCatch = 666336},
["Politoed"] = {gender = 500, level = 60, storage = 1186, stoCatch = 666337},
["Hoppip"] = {gender = 500, level = 10, storage = 1187, stoCatch = 666338},
["Skiploom"] = {gender = 500, level = 20, storage = 1188, stoCatch = 666339},
["Jumpluff"] = {gender = 500, level = 30, storage = 1189, stoCatch = 666340},
["Aipom"] = {gender = 500, level = 10, storage = 1190, stoCatch = 666341},
["Sunkern"] = {gender = 500, level = 3, storage = 1191, stoCatch = 666342},
["Sunflora"] = {gender = 500, level = 50, storage = 1192, stoCatch = 666343},
["Yanma"] = {gender = 500, level = 32, storage = 1193, stoCatch = 666344},
["Wooper"] = {gender = 500, level = 18, storage = 1194, stoCatch = 666345},
["Quagsire"] = {gender = 500, level = 55, storage = 1195, stoCatch = 666346},
["Espeon"] = {gender = 875, level = 55, storage = 1196, stoCatch = 666347},
["Umbreon"] = {gender = 875, level = 55, storage = 1197, stoCatch = 666348},
["Murkrow"] = {gender = 500, level = 35, storage = 1198, stoCatch = 666349},
["Slowking"] = {gender = 500, level = 60, storage = 1199, stoCatch = 666350},
["Misdreavus"] = {gender = 500, level = 47, storage = 1200, stoCatch = 666351},
["Unown"] = {gender = 500, level = 15, storage = 1201, stoCatch = 666352},
["Wobbuffet"] = {gender = 500, level = 42, storage = 1202, stoCatch = 666353},
["Girafarig"] = {gender = 500, level = 42, storage = 1203, stoCatch = 666354},
["Pineco"] = {gender = 500, level = 18, storage = 1204, stoCatch = 666355},
["Forretress"] = {gender = 500, level = 55, storage = 1205, stoCatch = 666356},
["Dunsparce"] = {gender = 500, level = 35, storage = 1206, stoCatch = 666357},
["Gligar"] = {gender = 500, level = 30, storage = 1207, stoCatch = 666358},
["Steelix"] = {gender = 500, level = 75, storage = 1208, stoCatch = 666359},
["Snubbull"] = {gender = 250, level = 20, storage = 1209, stoCatch = 666360},
["Granbull"] = {gender = 250, level = 42, storage = 1210, stoCatch = 666361},
["Qwilfish"] = {gender = 500, level = 16, storage = 1211, stoCatch = 666362},
["Scizor"] = {gender = 500, level = 75, storage = 1212, stoCatch = 666363},
["Shuckle"] = {gender = 500, level = 10, storage = 1213, stoCatch = 666364},
["Heracross"] = {gender = 500, level = 60, storage = 1214, stoCatch = 666365},
["Sneasel"] = {gender = 500, level = 50, storage = 1215, stoCatch = 666366},
["Teddiursa"] = {gender = 500, level = 20, storage = 1216, stoCatch = 666367},
["Ursaring"] = {gender = 500, level = 70, storage = 1217, stoCatch = 666368},
["Slugma"] = {gender = 500, level = 18, storage = 1218, stoCatch = 666369},
["Magcargo"] = {gender = 500, level = 40, storage = 1219, stoCatch = 666370},
["Swinub"] = {gender = 500, level = 12, storage = 1220, stoCatch = 666371},
["Piloswine"] = {gender = 500, level = 70, storage = 1221, stoCatch = 666372},
["Corsola"] = {gender = 250, level = 42, storage = 1222, stoCatch = 666373},
["Remoraid"] = {gender = 500, level = 14, storage = 1223, stoCatch = 666374},
["Octillery"] = {gender = 500, level = 38, storage = 1224, stoCatch = 666375},
["Delibird"] = {gender = 500, level = 25, storage = 1225, stoCatch = 666376},
["Mantine"] = {gender = 500, level = 50, storage = 1226, stoCatch = 666377},
["Skarmory"] = {gender = 500, level = 70, storage = 1227, stoCatch = 666378},
["Houndour"] = {gender = 500, level = 18, storage = 1228, stoCatch = 666379},
["Houndoom"] = {gender = 500, level = 70, storage = 1229, stoCatch = 666380},
["Kingdra"] = {gender = 500, level = 75, storage = 1230, stoCatch = 666381},
["Phanpy"] = {gender = 500, level = 12, storage = 1231, stoCatch = 666382},
["Donphan"] = {gender = 500, level = 45, storage = 1232, stoCatch = 666383},
["Porygon2"] = {gender = -1, level = 60, storage = 1233, stoCatch = 666384},
["Stantler"] = {gender = 500, level = 35, storage = 1234, stoCatch = 666385},
["Smeargle"] = {gender = 500, level = 28, storage = 1235, stoCatch = 666386},
["Tyrogue"] = {gender = 500, level = 15, storage = 1236, stoCatch = 666387},
["Hitmontop"] = {gender = 1000, level = 60, storage = 1237, stoCatch = 666388},
["Smoochum"] = {gender = 500, level = 3, storage = 1238, stoCatch = 666389},
["Elekid"] = {gender = 500, level = 3, storage = 1239, stoCatch = 666390},
["Magby"] = {gender = 500, level = 3, storage = 1240, stoCatch = 666391},
["Miltank"] = {gender = 0, level = 32, storage = 1241, stoCatch = 666392},
["Blissey"] = {gender = 0, level = 70, storage = 1242, stoCatch = 666393},
["Raikou"] = {gender = 500, level = 100, storage = 1243, stoCatch = 666394},
["Entei"] = {gender = 500, level = 100, storage = 1244, stoCatch = 666395},
["Suicune"] = {gender = 500, level = 100, storage = 1245, stoCatch = 666396},
["Larvitar"] = {gender = 500, level = 10, storage = 1246, stoCatch = 666397},
["Pupitar"] = {gender = 500, level = 50, storage = 1247, stoCatch = 666398},
["Tyranitar"] = {gender = 500, level = 90, storage = 1248, stoCatch = 666399},
["Lugia"] = {gender = 500, level = 100, storage = 1249, stoCatch = 666400},
["Ho-oh"] = {gender = 500, level = 100, storage = 1250, stoCatch = 666401},
["Celebi"] = {gender = 500, level = 100, storage = 1251, stoCatch = 666402},
["Shiny Hitmontop"] = {gender = 1000, level = 100, storage = 11520, stoCatch = 666403},

["Shiny Mr. Mime"] = {gender = 500, level = 45, storage = 11521, stoCatch = 666404},  --alterado v1.9 \/ 
["Shiny Rhydon"] = {gender = 500, level = 65, storage = 11522, stoCatch = 666405},
["Shiny Ninetales"] = {gender = 250, level = 65, storage = 11523, stoCatch = 666406},
["Shiny Ariados"] = {gender = 500, level = 42, storage = 11524, stoCatch = 666407},
["Shiny Magneton"] = {gender = -1, level = 38, storage = 11525, stoCatch = 666408},
["Shiny Espeon"] = {gender = 875, level = 55, storage = 11526, stoCatch = 666409},
["Shiny Politoed"] = {gender = 500, level = 60, storage = 11527, stoCatch = 666410},
["Shiny Umbreon"] = {gender = 875, level = 55, storage = 11528, stoCatch = 666411},
["Shiny Stantler"] = {gender = 500, level = 35, storage = 11529, stoCatch = 666412},
["Shiny Dodrio"] = {gender = 500, level = 42, storage = 11530, stoCatch = 666413},
["Shiny Magmar"] = {gender = 500, level = 42, storage = 11531, stoCatch = 666414},
["Shiny Crobat"] = {gender = 500, level = 42, storage = 11532, stoCatch = 666415},
}

local path = '/images/ui/pxg/topMenu_icons/'

  poke = g_ui.displayUI('pokedex', modules.game_interface.getRootPanel())
   
    poke:setOn(false)
    poke:setVisible(false)  
  poke:setDraggable(false)


   connect(g_game, 'onTextMessage', getParams)
   connect(g_game, { onGameEnd = hide } )
   
local dexlist = poke:getChildById("pokes")


for pokedex, i in pairs(newpokedex) do
if not string.find(pokedex, "Shiny") then
x = g_ui.createWidget('Dexs', dexlist)
 x:setText(pokedex)
x:setOn(true) 
x.onClick = function() g_game.talk("/dex "..pokedex) end 
end 
end

local dexlist = poke:getChildById("desdex")
dexlist:setText("Descrição")


end

function pokeimg()
if poke:isVisible() then
hide()
else
show()
end
 end

function hideicon()
   imgpoke:setOn(false)
   imgpoke:setVisible(false)
end

function showicon()
   imgpoke:setOn(true)
   imgpoke:setVisible(true)
end
      

function terminate()
   disconnect(g_game, 'onTextMessage', getParams)

   char:destroy()
end


function getParams(mode, text)
if not g_game.isOnline() then return end
   if mode == MessageModes.Failure then 
      if string.find(text, "ShowDex") then
         ShowPokedex(text)
end
end
end

function  ShowPokedex(text)
local function correctpoke(name)
if string.find(name, "Shiny") then
return string.sub(name, 5, #name)
end 
return name
end
local t = string.explode(text, "~")
pokemon = poke:recursiveGetChildById("poke")

local image = "poke/"..correctpoke(t[2])..".png"
pokemon:setImageSource(image)

dex = poke:recursiveGetChildById("desdex")
local desc = t[3]
dex:setText(desc)

show()
end

function hide()
poke:setOn(true)
   poke:setVisible(false)  
end
 
function show()
   poke:setVisible(true)
end

-- End public functions

 

Ai olha

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...