Ikarus suggested we start a new thread with our customized themes and questions on theming, so I thought I would post my current to start it off.
Theme includes the segoe ui font. Ikarus said he would assist in this thread as time permits for him, otherwise anyone with BS experience can jump in and assist anyone with problems.
If you don't know what the excellent Battery Status is, check out here
Here is the online-manual for customization, which is linked in the first post of BS-Thread too.
Yet another clock theme
Here's a clean and simple theme i made for my wizard. Not all meters can be shown, since i made icons for only the ones i use (no operator info, no AM/PM indicator for 12h clock, maybe something else is not implemented).
Includes icons for tray launcher - BT on/off, WiFi on/off, Phone on/off, rotate screen, disable screen and lock device.
With Ecqlipse 2 icons used for Touch commander and ppcProfiles Pro with modified tray icons and profile selection menu to match the overall look (done with ResourceHacker since ppcProfiles has no skinning option) it makes quite a good impression
Works best with HTC Touch Today screen theme, or other dark backgrounds.
Enjoy.
mr_deimos said:
Here's a clean and simple theme i made for my wizard. Not all meters can be shown, since i made icons for only the ones i use (no operator info, no AM/PM indicator for 12h clock, maybe something else is not implemented).
Includes icons for tray launcher - BT on/off, WiFi on/off, Phone on/off, rotate screen, disable screen and lock device.
With Ecqlipse 2 icons used for Touch commander and ppcProfiles Pro with modified tray icons and profile selection menu to match the overall look (done with ResourceHacker since ppcProfiles has no skinning option) it makes quite a good impression
Works best with HTC Touch Today screen theme, or other dark backgrounds.
Enjoy.
Click to expand...
Click to collapse
Nice job Mr_Deimos, looks great with a dark theme.
great job thank you
All the themes will be moved here this weekend
maybe interesting for theme-makers..
Eyecandy for KDE
Many sets of images in png-format.. maybe useful for making themes
Just started using this program and love it.
I actually got rid of Ilauncher since all I was using it for was the meters.
Keep those themes coming
TKS
Hi ikarus,
- How do you add the class="start_app" in the class "date" or the class "cpu_utilization" ?
I tried <Item class="date" ontap="\Windows\Calendar.exe" > but it doesn't work.
- How do change the icons for class="battery_ac_icons" ?
- Sorry to ask : where can I find the manual with all the tags ?
- Something strange : if the view with the CPU load is not active, the CPU load is not displayed in the taskbar. If the view is active and BS is minimized, the CPU load is still displayed in the taskbar.
- I believe the skin setup should override the option setup : if the option is set, the CPU frequency is bold, even with :
<Item class="cpuspeed" >
<label fontfamily="Tahoma" fontsize="12" bold="0" />
</Item>
- When trying to display the CPU utilization below the icon, using :
<Item class="cpu_utilization" ontap="CtlPnl" index="4" subindex="2" >
<image src="CPU.png" width="12" top="2" left="10" />
<label fontfamily="Tahoma" fontsize="12" width="40" top="7" left="-25" align="center" />
</Item>
Only the label area below the icon is refreshed (12 pixels) instead of the whole area (40 pixels).
Thanks again for this great apps.
Kind regards,
Herunim
Themes
Theme by Nostramo. Many Thanks to Nostramo for his great work!!!
Download -> see attachement
ClockTheme by RedUsr:
Download -> 4pda.ru
Theme by banan4ik -> internal Link
Minimalistic theme by utak3r --> Download
Example for application launcher:
Code:
<Row seperator="1" >
<View height="20" itemselect="1" >
<Item class="space" >
<image left="-25" src="rotate.bmp" transparent="020202" />
</Item>
<Item class="start_app" onhold="StartApp" path="\Windows\fexplore.exe" path1="\Windows\solitare.exe" />
<Item class="start_app" path="\Windows\BubbleBreaker.exe" />
<Item class="start_app" path="\Windows\solitare.exe" />
<Item class="start_app" path="\Windows\pword.exe" />
<Item class="start_app" path="\Windows\iexplore.exe" />
<Item class="start_app" path="\Windows\Calc.exe" />
</View>
<View height="38" itemselect="1" >
<Item class="space" >
<image left="-25" src="rotate.bmp" transparent="020202" />
</Item>
<Item class="start_app" path="\Windows\Calc.exe" />
<Item class="start_app" onhold="StartApp" path="\Windows\fexplore.exe" path1="\Windows\solitare.exe" />
<Item class="start_app" path="\Windows\iexplore.exe" >
<image smallicon="1" />
</Item>
<Item class="start_app" path="\Windows\ppt.exe" />
<Item class="start_app" path="\Windows\pword.exe" />
<Item class="start_app" path="\Windows\solitare.exe" />
</View>
<View height="62" absolute="2" itemselect="1" >
<Item class="space" absolute="0" >
<image left="-25" src="rotate.bmp" transparent="020202" />
</Item>
<Item class="start_app" title="Calc" path="\Windows\Calc.exe" >
<image top="1" left="25" />
<label width="40" top="36" valign="top" align="center" left="-2" fontsize="-3" />
</Item>
<Item class="start_app" title="File Explore" path="\Windows\fexplore.exe" >
<image top="1" left="65" />
<label width="40" top="34" valign="top" align="center" left="-4" format="wordbreak" fontsize="-3" />
</Item>
<Item class="start_app" title="Internet Explore" path="\Windows\iexplore.exe" >
<image top="1" left="105" />
<label width="40" top="36" valign="top" align="center" left="-2" format="wordbreak" fontsize="-3" />
</Item>
<Item class="start_app" title="Power Point" path="\Windows\ppt.exe" >
<image top="1" left="145" />
<label width="40" top="36" valign="top" align="center" left="-2" format="wordbreak" fontsize="-3" />
</Item>
<Item class="start_app" title="Solitare" path="\Windows\solitare.exe" >
<image top="1" left="185" />
<label width="40" top="36" valign="top" align="center" left="-2" fontsize="-3" />
</Item>
</View>
<View height="112" itemselect="1" multi="1" >
<Item class="space" >
<image left="-25" src="rotate.bmp" transparent="020202" />
</Item>
<Item class="start_app" title=" Calculator" path="\Windows\Calc.exe" >
<image top="1" />
<label width="180" bold="1" valign="top" top="10"/>
</Item>
<Item class="start_app" onhold="StartApp" title=" File Explorer" path="\Windows\fexplore.exe" path1="\Windows\solitare.exe" >
<image left="-216" top="38" />
<label width="180" bold="1" top="46" valign="top" />
</Item>
<Item class="start_app" title=" Internet Explorer" path="\Windows\iexplore.exe" >
<image left="-216" top="76"/>
<label width="180" bold="1" top="84" valign="top" />
</Item>
</View>
<View height="112" itemselect="1" multi="1" >
<Item class="space" absolute="1" >
<image src="rotate.bmp" transparent="020202" />
</Item>
<Item class="start_app" absolute="1" title=" Calculator" path="\Windows\Calc.exe" >
<image left="25" top="1" />
<label width="180" bold="1" valign="top" top="10"/>
</Item>
<Item class="start_app" onhold="StartApp" absolute="1" title=" öFile Explorer" path="\Windows\fexplore.exe" path1="\Windows\solitare.exe" >
<image left="25" top="38" />
<label width="180" bold="1" top="46" valign="top" />
</Item>
<Item class="start_app" absolute="1" title=" Internet Explorer" path="\Windows\iexplore.exe" >
<image left="25" top="76"/>
<label width="180" bold="1" top="84" valign="top" />
</Item>
</View>
</Row>
Example for Clock with seconds:
Code:
<View height="58">
<Item class="clock_digit" >
<image left="-18" resize="85" />
</Item>
<Item class="clock_digit" />
<Item class="clock_seperator" >
<image top="8" />
</Item>
<Item class="clock_digit" />
<Item class="clock_digit" />
<Item class="clock_seconds_sep" >
<image resize="50" top="25" />
</Item>
<Item class="clock_seconds" >
<image top="22" />
</Item>
<Item class="clock_seconds" >
<image top="22" />
</Item>
<Item class="clock_alarm" ontap="CtlPnl" index="16" subindex="2">
<image left="-43" top="4" />
</Item>
<Item class="clock_apm" >
<image left="4" top="2" />
</Item>
</View>
Themes 1
THEMES !!!!!
Theme from banan4ik, modified/fixed miniBS by utak3r --> Download
nothinpack_xo1BSTheme by nothin --> Download
SkinBS_Tiggerbcn --> Download
mini theme by nihil0 --> Download
Themes 2
Mini Theme by nihil0
--> Download
HTC Home style by tzm0510
--> Download
Hello Herunim,
Herunim said:
- Sorry to ask : where can I find the manual with all the tags ?
Click to expand...
Click to collapse
online-manual for customization, which is linked in the first post of BS-Thread too.
Shall i make the fontsize in first thread bigger?
Basically i don't like to emphasize so much, because it irritates more then..
Herunim said:
- How do you add the class="start_app" in the class "date" or the class "cpu_utilization" ?
I tried <Item class="date" ontap="\Windows\Calendar.exe" > but it doesn't work.
Click to expand...
Click to collapse
you have to use ontap="StartApp", which specifies the action to do.
btw. the class="start_app" implicitly makes use of ontap="StartApp"..
After that you can supply the parameters for that action (see manual) e.g. path="\Windows\Calendar.exe"
Don't you've seen the example for AppLauncher at first page of BS-Thread?
Anything you need is used in the example...
btw. i've just moved it to first page of this thread.
Herunim said:
- How do change the icons for class="battery_ac_icons" ?
Click to expand...
Click to collapse
there are a lot of methods, e.g.
- replace the bitmaps for that icons (copy the resources from default-folder to your desktop-computer and check which ones to change)
- use two <image src="..."... > for the images, where you can use png/bmp/gif/jpeg..
Herunim said:
- Something strange : if the view with the CPU load is not active, the CPU load is not displayed in the taskbar. If the view is active and BS is minimized, the CPU load is still displayed in the taskbar.
Click to expand...
Click to collapse
It's by design. The taskbar-indicator is primarily for showing the cpuspeed.
If no cpu-utilization reading is on today-screen (and cpuscaler is disabled), then there's no need to hold the resources for cpu-utilization. Any resources for cpu-utilization will then be released.
Herunim said:
- I believe the skin setup should override the option setup : if the option is set, the CPU frequency is bold, even with :
Click to expand...
Click to collapse
search for toggleBoldFont-Attribute in the online-manual
Herunim said:
- When trying to display the CPU utilization below the icon, using :
<Item class="cpu_utilization" ontap="CtlPnl" index="4" subindex="2" >
<image src="CPU.png" width="12" top="2" left="10" />
<label fontfamily="Tahoma" fontsize="12" width="40" top="7" left="-25" align="center" />
</Item>
Only the label area below the icon is refreshed (12 pixels) instead of the whole area (40 pixels).
Click to expand...
Click to collapse
I will check this as soon as possible, but i don't know when...
Nevertheless, thanks for reporting your observation
Hi ikarus,
The download link for "HTC Home style by tzm0510" in post #10 seems to be incorrect?
Hi ikarus,
Thank you for your answers.
I'm still having troubles with the battery icons:
<Item type="icon" class="battery_ac_icons" ontap="CtlPnl" index="3" >
<image src="OnBatt.png" />
<image src="OnAC.png" />
</Item>
doesn't work.
It seems that path with accents are not correctly handled. Using:
<Item class="cpu_utilization" ontap="StartApp" path="\Windows\Menu Démarrer\Task Manager.lnk" >
<image src="CPU.png" width="20" top="2" left="10" />
<label fontfamily="Tahoma" fontsize="12" width="20" top="7" left="-20" align="center" />
</Item>
makes BS revert to the default theme.
Kind regards,
Herunim
Hi,
I had this code in my xml. The date and clock is showing fine but the alarmon image is always showing even when alarm is set to off.
Anybody knows how to make it work?
Thannks!
Edit : Another question...what does absolute parameter do?
Code:
<Row>
<View height="14">
<Item class="date" ontap="CtlPnl" index="16">
<label text="dddd, dd MMMM yyyy" bold="1" fontsize="12" left="-28" top="2" align="center" />
</Item>
</View>
</Row>
<Row seperator="1" >
<View height="50">
<Item class="clock" ontap="CtlPnl" index="16">
<label text="HH':'mm':'ss" fontsize="40" left="-28" top="2" width="240" align="center" fontfamily="Alien Encounters" />
</Item>
<Item class="clock_alarm" ontap="CtlPnl" index="16" >
<image top="6" left="-22" />
</Item>
</View>
</Row>
From what i've seen, the alarm icon works only if you use png image-based clock. I think it was mentioned somewhere that it won't work with a label class based clock.
Try getting digit files (0.png - 9.png, separator.png and empty.png") and clock code from any of the themes using png clocks to confirm if it is in fact the case.
d8302530 said:
The download link for "HTC Home style by tzm0510" in post #10 seems to be incorrect?
Click to expand...
Click to collapse
oh, okay. thanks for report.. i will delete it. Actually i don't have a more recent link.
Herunim said:
I'm still having troubles with the battery icons:
<Item type="icon" class="battery_ac_icons" ontap="CtlPnl" index="3" >
<image src="OnBatt.png" />
<image src="OnAC.png" />
</Item>
doesn't work
Click to expand...
Click to collapse
could you attach your xml and the images for battery_ac_icons?
Herunim said:
It seems that path with accents are not correctly handled. Using:
...
makes BS revert to the default theme.
Click to expand...
Click to collapse
it's mentioned in the online-manual, but i don't know whether it works with accents.
You must load the xml on your PC with wordpad and "save as" "Unicode-document".
It's defaulted to ansi-encoding which is good for english. Even german users should do it btw...
whysolate said:
I had this code in my xml. The date and clock is showing fine but the alarmon image is always showing even when alarm is set to off.
Click to expand...
Click to collapse
This will NOT WORK yet.
alarmon is part of digit_clock-component and does not work without the digit_clock. I don't know when, but maybe next year i have more time to make it work..
whysolate said:
Edit : Another question...what does absolute parameter do?
Click to expand...
Click to collapse
check the online-manual
Hey Ikarus,
Is there anyway that using "ontap" for a row, we can toggle the view of the next row (right now, for next row action, I can only find "ToggleNextRow" which enables or hides the next row. I was looking for something similar to ToggleView, i.e., ToggleNextRowView)..
build 0264 - 22/12/2007:
- fixed: png allowed for battery_ac_icons
- removed: version-attribute from Window, version < 1 not supported any longer
- added: <Window ... custombg="0" > for using default-system-theme-background
- added: for RegistryTracker,
<image src="filename%d.png"...> respectively <image src="filename%s.ext"...>
for using images depending on registry-value
if a value is not covered by an image, then filename-1.ext (dword) or filename_empty.ext (string) will be used
- added: Mask to apply to registry-value (dword)
e.g. <label text="%d" mask="0xFF" >...
Herunim said:
I'm still having troubles with the battery icons:
<Item type="icon" class="battery_ac_icons" ontap="CtlPnl" index="3" >
<image src="OnBatt.png" />
<image src="OnAC.png" />
</Item>
doesn't work.
Click to expand...
Click to collapse
fixed in build 0264.
shantzg001 said:
Hey Ikarus,
Is there anyway that using "ontap" for a row, we can toggle the view of the next row (right now, for next row action, I can only find "ToggleNextRow" which enables or hides the next row. I was looking for something similar to ToggleView, i.e., ToggleNextRowView)..
Click to expand...
Click to collapse
hello shantzg, there's no way yet. Do you mean to switch the view or open a certain view?
ikarus, i meant open a certain view. Actually, I thought that if we have this feature we can have a "full-fledged" app launcher with BS. In one row, we can have 3-4 items that work as "tabs", and next row contains launcher icons. So, whenever we click on a tab, it switches the view of the next row accordingly so we see the corresponding icons.
Ikarus said that i have to post my problem here...
Here it is:
Screen1 = my Today-Screen
Screen2 = view 2 of BS in my Today-screen
It takes the red marked Field in Screen4 to open the tasks. When I tap onto the Tasks ("7 aktive Aufgaben") it switches to View 1.
Is there something wrong?
And my Problem 2: the green marked Field (in Screen3 and Screen4) doesnt change anything... it should change the views, but it doesnt change...
Please help me. Thanks you!
First & foremost, THANK to TWOLF for help with the scripts.
Please read all posts on first 4-5 pages as they contain a lot of the development process as well. I'll update This Post @ a later date with a more thorough Walkthrough & any corrections if needed.
Hello, what I am doing here is trying to add a click-able button that when pressed will lauch a function (App/Contact Shortcuts, Next/Play/Stop/Previous for players, etc.).
Here's a basic Walkthrough. Hope all understand me lol.
The Button code goes between
Code:
<Layer ID="CMultiClockExpanded" Visible="False" Width="240" Height="104" Clip="False">
&
Code:
<Layer ID="Page" Clip="False">
.
You shouldn't be deleting any existing code. Just add the button between those lines. All images/text in the Button Code HAVE to be source=""/text="". Otherwise they won't show. You can put the icon and text in the
Code:
<Layer ID="Page" Clip="False">
</Layer>
section and just line it up with your buttons. This is the best way to do multiple pages. The Buttons will be static across all pages but the text & icons for them will be Dynamic through the registry as normal. For the links to be dynamic across dif. pages, you'll need a special color code in the script & page for each page as well as each button. In which case the button code will look like this,
Code:
<Button ID="12H25HDisplay" Width="52" Height="38" Top="35" Left="186" Clip="False" >
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="15" Loop="True" LoopCount="4" Clip="False">
<Image ID="ButtonDown" Top="-4" Left="-4" Width="60" Height="46" Opacity="1.0" ScalingAlgorithm="TriLinear" Source="(IMAGEURL)" />
</ControlSequence>
<Layer ID="ButtonUpLayer" Clip="False">
<Image ID="ButtonUp" Width="52" Height="38" Visible="True" Opacity="1.0" ScalingAlgorithm="TriLinear" Source="(IMAGEURL)"/>
</Layer>
My multi button script with 1 page color pixel is attached. In the script color_code0 is the plugin/page activation, & color_code1 is for the buttons.
Screenshot,
NOTE:RED dots turn GREEN to activate button, BLUE dots (only need one & it should be a seperate color for each page) activate the code for the Plugin/Page this way it does run 24/7 & increases performance.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hope this helps....
Donators to Date:
Code:
[COLOR="Blue"]generalmills $200 CAD[/COLOR]
Here's a video of what I got so far.
Youtube
I don't under stand
I'm trying but when I push the buttom nothings happened
any where I do wrong?
Code:
<Layer ID="GProgramsExpanded" Width="240" Height="84" Visible="False" Clip="False">
<Button ID="AppLaunch1" Width="61" Height="71" Top="2" Left="110" OnInitComplete="Binding:URL,\ProgramFiles\CHomeEditor\CHomeEditor.exe" >
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="4" Loop="False" >
<Image ID="ButtonDown" Top="0" Width="61" Height="71" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\windows\LS_KeyPadButton_Dwn.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ButtonUp" Width="61" Height="71" Visible="True" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\windows\LS_KeypadButton.png"/>
</Layer>
<Image Left="10" Top="5" Width="41" Height="41" Visible="True" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_Settings_Settings.png"/>
<Text ID="AppText" Left="5" Top="46" Width="51" Height="20" FontFamily="Control Freak" FontStyle="Regular" FontSize="8" Wrap="True" HorizontalAlignment="Center" Trimming="EllipsisCharacter" Text="CHome Editor"></Text>
</Button>
<Image ID="AppIcon" Left="2" Top="2" Width="41" Height="41" ScaleStyle="Stretch" Source="\Neo\Neo_Clock.png"/>
<Layer ID="Page" Clip="False">
<Image ID="Icon" Left="9" Top="-37" Width="43" Height="57" />
<Image ID="PICTURES" Left="187" Top="20" Width="43" Height="40" ScaleStyle="Fit">
<Layer ID="Border2" Left="-1" Top="-1" Width="45" Height="45" Visible="True" Color="#FFFFFFFF" />
</Image>
<Text ID="TEXT1" Left="-73" Top="23" Width="250" Height="42" FontFamily="Tahoma" FontSize="12" FontStyle="Bold" Wrap="False" Trimming="EllipsisCharacter" VerticalAlignment="Top" HorizontalAlignment="Right">
<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" />
<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />
</Text>
<Text ID="TEXT2" Left="-73" Top="43" Width="250" Height="15" FontFamily="Tahoma" FontSize="9" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter" VerticalAlignment="Top" HorizontalAlignment="Right">
<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" />
<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />
</Text>
</Layer>
</Layer>
kane159 said:
I don't under stand
I'm trying but when I push the buttom nothings happened
any where I do wrong?
Click to expand...
Click to collapse
Nope, that's why it's "Under Developement". Still need to break the code that binds the button. Been trying, my latest though is maybe using Mortscript to recognize the button press and launch the app.
ummmm.....I mean nothings happened is button didn't changes to show it's pressed....that work right? or that is "Under Developement" too
Oh ok, from what I see the code is correct. The button "should" animate. It does so for me. Check my video above. Try pressing it harder, I've notice light short press won't register. You have to "really" press the button for at least 1 full second.
EDIT: This can be used as is to make the "Focus Selection Panel" animate on finger press when switching between panels or activating ACTIONURL. Here's an exple of my Navbar Code. (NOTE: You need to make the images linked in the button code).
Code:
<TitaniumListView ID="HomeNav" Width="45" Height="268" Columns="1" Rows="100" ItemWidth="45" ItemHeight="39" Clip="False" >
<Layer ID="Focus" Width="240" Height="45" Clip="False">
<Image ID="Image Default" Left="0" Top="-7" Width="65" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="-7" Width="55" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
[COLOR="Blue"] <Button ID="SelectorPanel" Width="65" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="-7" Width="65" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="-7" Width="65" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>[/COLOR]
</Layer>
<Layer ID="ListItem" Visible="False" />
<Layer ID="No Items" Opacity="0">
<Text ID="Text" Width="100" Height="19" FontFamily="Control Freak" FontSize="9" FontStyle="Bold" Wrap="False" Trimming="EllipsisCharacter" Clip="False" >No Items</Text>
</Layer>
</TitaniumListView>
I puss it over 20 sec and still not things happened
am I put the code the wrong place??
I put it before <Layer ID="Page" Clip="False">
kane159 said:
I puss it over 20 sec and still not things happened
am I put the code the wrong place??
I put it before <Layer ID="Page" Clip="False">
Click to expand...
Click to collapse
Nope, I've placed in before & after the "Page" code and have it work although after makes multiple buttons not display correctly. Maybe it's because you're using default Titanium and the ActionURL/Navbar space covers your button & may have higher priority than the button laying under it.
EDIT: Check the about post for a sample of how to make all panels have a animated Selection Panel.
can you give me your \Neo\Neo_Focus_Panel_Portrait.png and \Neo\Neo_FocusPanel_Action_Portrait.png let me test??
this is how it looks like when I push it
kane159 said:
can you give me your \Neo\Neo_Focus_Panel_Portrait.png and \Neo\Neo_FocusPanel_Action_Portrait.png let me test??
this is how it looks like when I push it
Click to expand...
Click to collapse
Copy the following Code & Install CAB.
Portrait Code:
Code:
<Layer ID="Focus" Width="240" Height="65" Clip="False">
<Image ID="Image Default" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Button ID="SelectorPanel" Width="240" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="0" Width="240" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>
</Layer>
Landscape Code:
Code:
<Layer ID="Focus" Width="240" Height="65" Clip="False">
<Image ID="Image Default" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Button ID="SelectorPanel" Width="320" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="0" Width="320" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>
</Layer>
@ twolf
ok, here's the screen shot. The Yellow Pixel is on the unpressed button & Green is on the pressed button for testing purposes. My device is QVGA. Both Pixels are on the same X/Y position for simplicity.
Also, on finished product, I can add a Virtual LED to the button that doubles for the purpose of the Script & Camouflaging.
EDIT: In order for a button to be "Press-ible", The HomeNav can't cover it. In my example below you see the width is only 45 Pixels. This means only the left most 45 pixels are used for changing panels/pages. The rest of the screen is free for buttons than.
Code:
<TitaniumListView ID="HomeNav" Width="45" Height="268" Columns="1" Rows="100" ItemWidth="45" ItemHeight="39" Clip="False" >
Just made Contact/App Shortcut Button Images btw.
The Images;
Example of Finished Icon Button;
Sorry, only had time to look at this now.
You didnt mentioned if you have a QVGA, based on your screenshots, I'm assuming you do.
Will make the script now.
OK, heres what I did, these are the scripts, the printscreens were in JPG format, so the location was hard to get, but I believe these are right.
To test:
----------
- Extract the files anywhere on your PPC.
- Run check_color.mscr
- One script starts and other stops (kills) the test.
- For now its only trying to read the first button press and starts MS WORD on pressed.
- All this is changeable on the MSCR file.
Its already fixed for QVGA and VGA (not tested) but I couldnt get a correct color reading on the image, again because of the JPG compression, so I changed it to the default bright green #00FF00 :
Bear in mind that Mortscript doesnt read the color in hexadecimal format, so I added a commented message on the test, to see what is the color number.
To use the test simply remove the # in front of the MESSAGE and change the seconds loop to 5000 (5 seconds) instead of 500 (half a second), so that you dont get flooded with messages.
twolf said:
OK, heres what I did, these are the scripts, the printscreens were in JPG format, so the location was hard to get, but I believe these are right.
To test:
----------
- Extract the files anywhere on your PPC.
- Run check_color.mscr
- One script starts and other stops (kills) the test.
- For now its only trying to read the first button press and starts MS WORD on pressed.
- All this is changeable on the MSCR file.
Its already fixed for QVGA and VGA (not tested) but I couldnt get a correct color reading on the image, again because of the JPG compression, so I changed it to the default bright green #00FF00 :
Bear in mind that Mortscript doesnt read the color in hexadecimal format, so I added a commented message on the test, to see what is the color number.
To use the test simply remove the # in front of the MESSAGE and change the seconds loop to 5000 (5 seconds) instead of 500 (half a second), so that you dont get flooded with messages.
Click to expand...
Click to collapse
Actually I did state my device is QVGA lol, but any who.
Ok, made a few changes to the script. First made it read a registry key to easily change the program url. Also, got the color codes, Yellow = 3273727 & Green = 4360704. Also had to change the program launched as my ROM doesn't have Office installed. here's the new script & a video showing that IT WORKS!!!
YouTube Video
EDIT: Made a couple changes due to bugs. Reduced the loop count of the button animation from 5 to 2 as this was causing the script to to reload the shortcut when you went back to titanium and the Animation was still active. Also, reduced the "sleep" in the script from 500 to 100 as the shorter animation wouldn't always be caught.
Cool.
Now that its working for sure we have to:
- Create a "hidden" pixel much like the color codes I did for my plugin pages, so that the script only kicks in when your plugin is selected.
- Make sure the RUN command is only runned once, giving it a couple of seconds before accept the same link.
- Create a design with the final layout so that we can get all the correct x/y values for each button.
- Add those values into a much simpler script with a dynamic array, so that we dont have to duplicate the code as many times as there are buttons.
- Create the X/Y database for different screen sizes (this is direcly connected to the PLG).
- When the "hidden" pixel is not present (when the user is in another plugin), the script is silently killed, so that it doesnt hog the RAM.
Also, an ideia... I know this defeats the purpose of the buttons, but a extra menu, like WM5 NEW MENU or kvvQuickMenu, can be very usefull for specific buttons with extra uses, like "NEW SMS" and "OPEN INBOX", for example...
twolf said:
Cool.
Now that its working for sure we have to:
- Create a "hidden" pixel much like the color codes I did for my plugin pages, so that the script only kicks in when your plugin is selected.
- Make sure the RUN command is only runned once, giving it a couple of seconds before accept the same link.
- Create a design with the final layout so that we can get all the correct x/y values for each button.
- Add those values into a much simpler script with a dynamic array, so that we dont have to duplicate the code as many times as there are buttons.
- Create the X/Y database for different screen sizes (this is direcly connected to the PLG).
- When the "hidden" pixel is not present (when the user is in another plugin), the script is silently killed, so that it doesnt hog the RAM.
Also, an ideia... I know this defeats the purpose of the buttons, but a extra menu, like WM5 NEW MENU or kvvQuickMenu, can be very usefull for specific buttons with extra uses, like "NEW SMS" and "OPEN INBOX", for example...
Click to expand...
Click to collapse
Another thought I had last night is, having 1 pixel for page as well. The Button may show on all pages but if we tell it what panel & what page through pixels. Then, you can have multiple pages. The Shortcut ICON & Text can be dynamic across pages while the buttons are static. the script launches the attached shortcut according to the panel/page pixel color codes.
EDIT: Also with your idea of menus. The possiblilities are endless. We can make Titanium act more like M2D or TF3D. For example, a contact launcher, when you click on the contact button. It opens a menu with "Call", "SMS", "MMS", & "Edit" Options.
hmmmm... That can be done, yes, but if you really create severall pages on the plugin registry, you can add side buttons where a script simulates the left/right keystrokes to make the plugin's pages turn.
and... the default button list can be dynamic...
Mortscript can auto-create a list of the start menu items, apply its links to a small database, use the names of the links as the text for each one (without the ".lnk"), and maybe even (not sure about this one) use the icon of a dll for the icon image on the registry.
Then to update, users would have a mortscript menu (or flash, hehehe) to change the link, name and image of the button, the default text of the link would be the shortcut name.
I only dont recommend flash for this because I still dont have a working BROWSE button for it...
twolf said:
hmmmm... That can be done, yes, but if you really create severall pages on the plugin registry, you can add side buttons where a script simulates the left/right keystrokes to make the plugin's pages turn.
and... the default button list can be dynamic...
Mortscript can auto-create a list of the start menu items, apply its links to a small database, use the names of the links as the text for each one (without the ".lnk"), and maybe even (not sure about this one) use the icon of a dll for the icon image on the registry.
Then to update, users would have a mortscript menu (or flash, hehehe) to change the link, name and image of the button, the default text of the link would be the shortcut name.
I only dont recommend flash for this because I still dont have a working BROWSE button for it...
Click to expand...
Click to collapse
Yeah, thought about the page buttons last night as well. One thing I've noticed with NeoTitanium is that changing page via gestures is tricky. So having buttons for changing pages is much better for users without a D-Pad or who at least don't use it.
Also, check my last post "Edit".
Oh, yes, menus for contacts is a great idea, tomorrow ill start working on the dynamic arrays for mutiple buttons.
The script has to:
-------------------
- check every 1 second (?) if the user is on your plugin.
- If it is, check every 1 (?) second on what page it is.
- and check every 1 second if any button is pressed (green).
- If it is green, read and open X button link of the X page.
- Save that click link and only open it again if its been 3 seconds (for slowers button clicks on 200mhz machines).
twolf said:
Oh, yes, menus for contacts is a great idea, tomorrow ill start working on the dynamic arrays for mutiple buttons.
The script has to:
-------------------
- check every 1 second (?) if the user is on your plugin.
- If it is, check every 1 (?) second on what page it is.
- and check every 1 second if any button is pressed (green).
- If it is green, read and open X button link of the X page.
- Save that click link and only open it again if its been 3 seconds (for slowers button clicks on 200mhz machines).
Click to expand...
Click to collapse
Sounds good, right now I have it set to 1/10th of a second on my Kaiser and it works flawlessly with a 2 loopcount of the animation. With that idea I can increase the loopcount to 5 again and reduce the sleep time and not have to worry about the script opening the same shortcut. The only catch is that the animation only finishes when Titanium is onscreen. So the 3 second wait may not work if they have the app opened longer than 3 second.