Accueil du SiteAccueil du Site  AccueilAccueil  Dernières imagesDernières images  RechercherRechercher  ConnexionConnexion  S'enregistrerS'enregistrer  



-17%
Le deal à ne pas rater :
Casque de réalité virtuelle Meta Quest 2 128 Go Blanc (+29,99€ ...
249.99 € 299.99 €
Voir le deal

Partagez
 

 Problème RMXP script

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Kasbak
Membre V.I.P.
Membre V.I.P.
Kasbak

Masculin
Messages postés : 1356
Date d'inscription : 05/01/2013
Jauge LPC :
Problème RMXP script 8915271400100 / 100100 / 100Problème RMXP script 8915271400

Problème RMXP script Dragon10
Problème RMXP script Meille12
Problème RMXP script Membre10
Problème RMXP script Projet12
Problème RMXP script Riche_10
Problème RMXP script Altrui10
Problème RMXP script Membre10
Problème RMXP script Membre15
Problème RMXP script Event-10
Problème RMXP script Partag10
Problème RMXP script Projet10
Problème RMXP script Mappeu10
Problème RMXP script Collec10


Problème RMXP script Empty
MessageSujet: Problème RMXP script   Problème RMXP script EmptyVen 12 Déc 2014 - 10:29

Bonjour,j'ai un problème avec un menu_selectable,quand je crée une option hors-écran la vue ne suis plus du coup on perd le curseur.

Sur cette image par exemple,imaginons je vais en s7,le curseur commence à être caché,puis imaginons maintenant je vais sur s8 le curseur disparaîtra totalement.
J'aimerais savoir comment remèdier à ça ?
Voir le Fichier : SCREEN_SELECTABLE_4545.png
Revenir en haut Aller en bas
http://kasbakprod.wifeo.com/ http://kasbak.deviantart.com/
Hellper
Chevalier Dragon (niveau 5)
Chevalier Dragon (niveau 5)
Hellper

Masculin
Messages postés : 1190
Date d'inscription : 04/03/2013
Jauge LPC :
Problème RMXP script 891527140086 / 10086 / 100Problème RMXP script 8915271400


Problème RMXP script Membre15
Problème RMXP script Membre10
Problème RMXP script Altrui10
Problème RMXP script Event-10
Problème RMXP script Script10
Problème RMXP script Projet16
Problème RMXP script Riche_10
Problème RMXP script King_o10
Problème RMXP script Collec10


Problème RMXP script Empty
MessageSujet: Re: Problème RMXP script   Problème RMXP script EmptyVen 12 Déc 2014 - 10:40

Ça serait peut-être mieux avec le script en question ?
Enfin j'imagine que tu as un script de gestion de souris ?
Revenir en haut Aller en bas
http://kustomskromatiks.byethost17.com/
Kasbak
Membre V.I.P.
Membre V.I.P.
Kasbak

Masculin
Messages postés : 1356
Date d'inscription : 05/01/2013
Jauge LPC :
Problème RMXP script 8915271400100 / 100100 / 100Problème RMXP script 8915271400

Problème RMXP script Dragon10
Problème RMXP script Meille12
Problème RMXP script Membre10
Problème RMXP script Projet12
Problème RMXP script Riche_10
Problème RMXP script Altrui10
Problème RMXP script Membre10
Problème RMXP script Membre15
Problème RMXP script Event-10
Problème RMXP script Partag10
Problème RMXP script Projet10
Problème RMXP script Mappeu10
Problème RMXP script Collec10


Problème RMXP script Empty
MessageSujet: Re: Problème RMXP script   Problème RMXP script EmptySam 13 Déc 2014 - 23:52

J'entendez curseur par l'arborescence de l'onglet par le deplacement avec les touche directionnelles du clavier je me suis mal expliquer.
Revenir en haut Aller en bas
http://kasbakprod.wifeo.com/ http://kasbak.deviantart.com/
Siegfried
Mage (niveau 2)
Mage (niveau 2)
Siegfried

Masculin
Messages postés : 286
Date d'inscription : 31/07/2011
Jauge LPC :
Problème RMXP script 891527140080 / 10080 / 100Problème RMXP script 8915271400

Problème RMXP script Altrui10
Problème RMXP script Script10


Problème RMXP script Empty
MessageSujet: Re: Problème RMXP script   Problème RMXP script EmptyDim 14 Déc 2014 - 1:05

Tu as changé la taille des options, ça bousille tout.
Si c'est bien une fenêtre de type Window_Selectable, tu ajoutes ces quelques méthodes :

Code:

  #--------------------------------------------------------------------------
  # * Command_height
  #--------------------------------------------------------------------------
  def command_height
    return 32
  end
  #--------------------------------------------------------------------------
  # * Draw cursor
  #--------------------------------------------------------------------------
  def draw_cursor
    # Calculate cursor width
    cursor_width = self.width / @column_max - 32
    # Calculate cursor coordinates
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * self.command_height - self.oy
    # Update cursor rectangle
    self.cursor_rect.set(x, y, cursor_width, self.command_height)
  end
  #--------------------------------------------------------------------------
  # * Get Top Row
  #--------------------------------------------------------------------------
  def top_row
    # Divide y-coordinate of window contents transfer origin by 1 row
    # height of 32
    return self.oy / command_height
  end
  #--------------------------------------------------------------------------
  # * Set Top Row
  #    row : row shown on top
  #--------------------------------------------------------------------------
  def top_row=(row)
    # If row is less than 0, change it to 0
    if row < 0
      row = 0
    end
    # If row exceeds row_max - 1, change it to row_max - 1
    if row > row_max - 1
      row = row_max - 1
    end
    # Multiply 1 row height by 32 for y-coordinate of window contents
    # transfer origin
    self.oy = row * command_height
  end
  #--------------------------------------------------------------------------
  # * Get Number of Rows Displayable on 1 Page
  #--------------------------------------------------------------------------
  def page_row_max
    # Subtract a frame height of 32 from the window height, and divide it by
    # 1 row height of 32
    return (self.height - 32) / command_height
  end

Puis tu remplaces 32 par la hauteur de tes options ici :
Code:
  def command_height
    return 32
  end

Revenir en haut Aller en bas
http://saleth.fr
Kasbak
Membre V.I.P.
Membre V.I.P.
Kasbak

Masculin
Messages postés : 1356
Date d'inscription : 05/01/2013
Jauge LPC :
Problème RMXP script 8915271400100 / 100100 / 100Problème RMXP script 8915271400

Problème RMXP script Dragon10
Problème RMXP script Meille12
Problème RMXP script Membre10
Problème RMXP script Projet12
Problème RMXP script Riche_10
Problème RMXP script Altrui10
Problème RMXP script Membre10
Problème RMXP script Membre15
Problème RMXP script Event-10
Problème RMXP script Partag10
Problème RMXP script Projet10
Problème RMXP script Mappeu10
Problème RMXP script Collec10


Problème RMXP script Empty
MessageSujet: Re: Problème RMXP script   Problème RMXP script EmptyDim 14 Déc 2014 - 18:42

Merci je vais essayer ça.
Revenir en haut Aller en bas
http://kasbakprod.wifeo.com/ http://kasbak.deviantart.com/
Contenu sponsorisé




Problème RMXP script Empty
MessageSujet: Re: Problème RMXP script   Problème RMXP script Empty

Revenir en haut Aller en bas
 
Problème RMXP script
Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» problème variable ruby RMXP
» [Résolu ][RMXP] problème d'image dans un script.
» [RMXP] Problème de son
» RMXP bug script (window_selectable)
» [RMXP] Probléme intro

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Le Palais Créatif :: ~ APPRENTISSAGE ~ :: Entraide :: Scripts et plugins-
Sauter vers: