Rpg˛S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Vai al contenuto

Rpg˛S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Screen Contest #90

Kamikun





Avatar

 Modifica script popup


Best Answer Zoro the Gallade , 14 September 2022 - 15:53 PM

  def fade_popup
   $popups.shift if $popups.size > 5
    $popups.each do |popup|
      next if popup.nil?
      if popup[1].opacity == 0
        elimina_elemento(popup)
      end
    end
  end

Una pezza che dovrebbe funzionare in linea teorica, sostituisci il metodo fade_popup con questo e vedi se va

Vai al post intero

  • Si prega di effettuare il log in prima di rispondere
Modifica script popup

    nickk.c
  • Nuovo Arrivato

  • Utenti
  • Rens: 0
  • 0
  • Stelletta
  • 37 messaggi
  • Sesso:Maschio
  • Provenienza:Roma
  • Abilitā:Apprendista

#1 Inviato 12 September 2022 - 16:52 PM

Salve a tutti, sto utilizzando questo script di Holy87 che mostra dei popup quando si ottiene un oggetto

Spoiler

 

vorrei fare in modo che vengano mostrati solo 5 popup alla volta, in modo tale che poi i popup degli oggetti ottenuti meno recentemente scompaiano.

Spero di essermi spiegato bene ^^" grazie in anticipo :D



    Zoro the Gallade
  • Arshes (RmXP)

  • Utenti
  • Rens: 178
  • 8
  • StellettaStellettaStellettaStellettaStellettaStelletta
  • 1939 messaggi
  • Sesso:Maschio
  • Provenienza:Palermo
  • Abilitā:Maestro

#2 Inviato 14 September 2022 - 15:53 PM

  Best Answer

  def fade_popup
   $popups.shift if $popups.size > 5
    $popups.each do |popup|
      next if popup.nil?
      if popup[1].opacity == 0
        elimina_elemento(popup)
      end
    end
  end

Una pezza che dovrebbe funzionare in linea teorica, sostituisci il metodo fade_popup con questo e vedi se va


Mensola dei trofei:

Spoiler

 

Creazioni varie:

hnR4pt.png


    nickk.c
  • Nuovo Arrivato

  • Utenti
  • Rens: 0
  • 0
  • Stelletta
  • 37 messaggi
  • Sesso:Maschio
  • Provenienza:Roma
  • Abilitā:Apprendista

#3 Inviato 15 September 2022 - 23:27 PM

Grazie mille, funziona perfettamente! ^ ^






  • Feed RSS