2009年3月9日 星期一

客製化 Fox Calculator 的方法

Fox Calculator 提供客製化的功能,共有:

1. Splash Image
要更換這張圖片,可以將 splash.png 換成您喜歡的圖片即可。由於 Fox Calculator 會在圖片下面顯示一段文字,建議在圖片下方留下高約 20 pixel 以上的空白。

2. Background Image
背景圖片的檔名為 background.png,這張圖片可以是任意的圖片。如果圖片大小,小於 240 x 320,Fox Calculator 會自動排列使之填滿整個畫面。

3. 各種按鈕
按鈕也是可以進行客製化的項目之一。Fox Calculator 將按鈕分成四類,
  • 0-9 及 . 使用 button1.png 及 button1_down.png。
  • +, -, *, / 使用 button2.png 及 button2_down.png。
  • Help, Sound 使用 button3.png 及 button3_down.png。
  • =, AC, C 使用 button4.png 及 button4_down.png。
其中,_down.png 結尾的圖片是使用者按下後顯示的圖片。

當然,按鈕的圖片也可以針對單一按鈕進行客製化,例如:您可以透過 0_button.png 及 0_button_down.png 來更換 0 的圖片,以下列出個每個按鈕客製化的檔名:
  • 0 ~ 9: 0_button.png, 0_button_down.png, 1_button.png, 1_button_down.png, ..., 9_button.png, 9_button_down.png
  • . : dot_button.png, dot_button_down.png
  • =: equal_button.png, dot_button_down.png
  • *: multiply_button.png, multiply_button_down.png
  • -: minus_button.png, minus_button_down.png
  • +: plus_button.png, plus_button_down.png
  • /: divide_button.png, divide_button_down.png
  • AC: ac_button.png, ac_button_down.png
  • C: c_button.png, c_button_down.png
  • Help and Close: help_close_button.png, help_close_button_down.png
  • Mute and Config: mute_config_button.png, mute_config_button_down.png
  • Nonmute and Config: nonmute_config_button.png, nonmute_config_button_down.png
4. Sound
按鈕按下去的聲音也是客製化的功能之一,預設的聲音為 click_sound.wav,您可以將之改成您喜歡的聲音檔即可。除了按鈕圖片提供單一按鈕客製化功能外,聲音也提供類似的功能,您可以利用前個項目(3. 各種按鈕)中每個按鈕客製化的命名,將 _button.png 改成 click_sound.wav 就可以針對該按鈕進行聲音的客製化,例如: equal_click_sound.wav 可以用來指定『=』按下後的聲音。

沒有留言:

張貼留言