Vai al contenuto

Rilevato Ad-Blocker. Per favore disabilita il tuo adblocker quando navighi su makerando.com - Non c'è nessun annuncio invasivo.

Cerca nel Forum

Showing results for tags 'Icone nel Titolo'.



More search options

  • Search By Tags

    Tag separati da virgole.
  • Search By Author

Tipo di contenuto


Forums

  • Comunità
    • Cancello di Ingresso
    • Bacheca
    • Colisseum
  • DevTeam
    • CyberTeam
  • Giochi e Progetti RPG Maker
    • Resa Grafica
    • Concept e Bozze
    • Progetti
    • Giochi RPG Maker Completi e Demo
    • Il Making Oltreoceano
  • Assistenza e Supporto RPG Maker
    • Biblioteca
    • BrainStorming
    • Chiedi Aiuto alla Comunity
    • RPG Maker Scripting
    • PlugIn e AddOn RPG Maker
    • Musica e Suoni
    • Risorse Grafiche RPG Maker
    • Mak - Resources
  • Beyond Making - Oltre RPG Maker
    • Altri Tool

Find results in...

Find results that contain...


Data di creazione

  • Start

    End


Ultimo Aggiornamento

  • Start

    End


Filter by number of...

Iscritto

  • Start

    End


Gruppo


AIM


Indirizzo Web


ICQ


Yahoo


Skype


Location


Interests

Trovato 1 risultato

  1. Nome Script: Icone nel Titolo Versione: N/D Autore/i: Gab! Informazioni: Un semplice script che inserisce le icone affianco ai comandi del titolo. Istruzioni: Inserite lo script sopra main. Script: #==============================================================================# # Title Icons # #------------------------------------------------------------------------------# # Autor: Gab! # # Data: 16/06/2011 # #------------------------------------------------------------------------------# # Feito para: glorenconi # # Fábrica: PRO Coders # # # # DEMONSTRAÇÃO JÁ CONFIGURADA # #------------------------------------------------------------------------------# # VOCÊ TEM TOTAL LIBERDADE PARA MODIFICAR, DISTRIBUIR E USAR O SCRIPT, DESDE # # QUE ESSE CABEÇALHO, SEJA MANTIDO INTÁCTO. SEM NENHUMA ALTERAÇÃO. # #==============================================================================# #==============================================================================# # * CONFIGURAÇÃO # #==============================================================================# module Gab module TitleIcons ICONS = [ # ID dos ícones para a mudança # Separados por virgula [1,20,34], # Novo Jogo [2,33,31], # Continuar [3,16,25] # Sair ] CTIME = 3 # Tempo, em segundos, da troca dos ícones end end #==============================================================================# # * FIM DA CONFIGURAÇÃO # #==============================================================================# class Scene_Title alias old_st_ccw create_command_window unless $@ alias old_st_upd update unless $@ def create_command_window(*args) old_st_ccw(*args) @window_icon_index = [0]*3 tmp = -1 @window_icon_index.map!{|i| (i + 1) % Gab::TitleIcons::ICONS[tmp += 1].size} tmp = -1 @command_window.icon = @window_icon_index.map{|i| Gab::TitleIcons::ICONS[tmp += 1][i]} @command_window.refresh end def update(*args) old_st_upd(*args) if (Graphics.frame_count % (Graphics.frame_rate * Gab::TitleIcons::CTIME)) == 0 tmp = -1 @window_icon_index.map!{|i| (i + 1) % Gab::TitleIcons::ICONS[tmp += 1].size} tmp = -1 @command_window.icon = @window_icon_index.map{|i| Gab::TitleIcons::ICONS[tmp += 1][i]} @command_window.refresh end end end class Window_Command attr_accessor :icon def initialize(width, commands, column_max = 1, row_max = 0, spacing = 32, icon = []) row_max = (commands.size + column_max - 1) / column_max if row_max == 0 super(0, 0, width, row_max * WLH + 32, spacing) @commands, @item_max, @column_max, @icon = commands, commands.size, column_max, icon refresh self.index = 0 end def draw_item(index, enabled = true) rect = item_rect(index) rect.x += 4 rect.width -= 8 if [email protected]? && defined?(@icon[index]) draw_icon(@icon[index], rect.x, rect.y, enabled) rect.x += 24 end self.contents.clear_rect(rect) self.contents.font.color = normal_color self.contents.font.color.alpha = enabled ? 255 : 128 self.contents.draw_text(rect, @commands[index]) end end Incompatibilita': N/D
×