_SliderOverlay::_SliderOverlay(void)
: __pOverlayBgBitmap(null)
, __pOverlayBgEffectBitmap(null)
- , __pOverlayBottomBgBitmap(null)
- , __pOverlayBottomBgEffectBitmap(null)
, __overlayBgColor(0)
, __overlayTextColor(0)
, __pFont(null)
delete __pOverlayBgEffectBitmap;
__pOverlayBgEffectBitmap = null;
- delete __pOverlayBottomBgBitmap;
- __pOverlayBgBitmap = null;
-
- delete __pOverlayBottomBgEffectBitmap;
- __pOverlayBgEffectBitmap = null;
-
}
delete pBitmap;
pBitmap = null;
- r = GET_BITMAP_CONFIG_N(SLIDER::DOWNWARD_OVERLAY_BG_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
- SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.");
-
- pReplacementBitmap = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __overlayBgColor);
- r = GetLastResult();
- SysTryCatch(NID_UI_CTRL, pReplacementBitmap != null, , r, "[%s] Propagating.", GetErrorMessage(r));
-
- delete __pOverlayBottomBgBitmap;
- __pOverlayBottomBgBitmap = pReplacementBitmap;
-
- delete pBitmap;
- pBitmap = null;
-
-
r = GET_BITMAP_CONFIG_N(SLIDER::UPWARD_OVERLAY_BG_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Propagating.");
delete __pOverlayBgEffectBitmap;
__pOverlayBgEffectBitmap = pBitmap;
- r = GET_BITMAP_CONFIG_N(SLIDER::DOWNWARD_OVERLAY_BG_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
- SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Propagating.");
-
- delete __pOverlayBottomBgEffectBitmap;
- __pOverlayBottomBgEffectBitmap = pBitmap;
-
return r;
CATCH:
int overlayTextSize = 0;
float overlayBodyHeight = 0.0f;
float overlayY = 0.0f;
- float overlayOffset = 0.0f;
Point textPoint(0, 0);
bool isCustomBitmap = false;
__sliderRect.y + overlayY - (overlayHeight + overlayBottomMargin),
overlayWidth, overlayHeight);
- if (__sliderOverlayRect.y <= 0)
- {
- if (__sliderRect.height < (__sliderTouchRect.y + __sliderTouchRect.height))
- {
- overlayOffset = __sliderRect.height;
- }
- else
- {
- overlayOffset = __sliderTouchRect.y + __sliderTouchRect.height;
- }
- __sliderOverlayRect.y = __sliderRect.y + overlayOffset + overlayBottomMargin;
- pBgBitmap = __pOverlayBottomBgBitmap;
- pEffectBgBitmap = __pOverlayBottomBgEffectBitmap;
- textPoint.y = overlayHeight - overlayBodyHeight;
- isCustomBitmap = IS_CUSTOM_BITMAP(SLIDER::DOWNWARD_OVERLAY_BG_NORMAL);
- }
-
// Check SliderOverlay Position
if (__sliderOverlayRect.x < __sliderRect.x)
{
DECLARE_IMAGE_CONFIG(HANDLE_BG_EFFECT_HIGHLIGHTED, 12);
DECLARE_IMAGE_CONFIG(UPWARD_OVERLAY_BG_NORMAL, 13);
DECLARE_IMAGE_CONFIG(UPWARD_OVERLAY_BG_EFFECT, 14);
- DECLARE_IMAGE_CONFIG(DOWNWARD_OVERLAY_BG_NORMAL, 15);
- DECLARE_IMAGE_CONFIG(DOWNWARD_OVERLAY_BG_EFFECT, 16);
DECLARE_SHAPE_CONFIG(HANDLE_WIDTH, 1);
DECLARE_SHAPE_CONFIG(HANDLE_HEIGHT, 2);
DECLARE_SHAPE_CONFIG(HANDLE_OFFSET, 3);
ADD_IMAGE_CONFIG(HANDLE_BG_EFFECT_DISABLED, #00_slider_handle_ef_dim.png);
ADD_IMAGE_CONFIG(HANDLE_BG_EFFECT_HIGHLIGHTED, #00_slider_handle_ef.png);
- ADD_IMAGE_CONFIG(UPWARD_OVERLAY_BG_NORMAL, #00_slider_popup_bg.png);
- ADD_IMAGE_CONFIG(UPWARD_OVERLAY_BG_EFFECT, #00_slider_popup_bg_ef.png);
- ADD_IMAGE_CONFIG(DOWNWARD_OVERLAY_BG_NORMAL, #00_slider_popup_bottom_bg.png);
- ADD_IMAGE_CONFIG(DOWNWARD_OVERLAY_BG_EFFECT, #00_slider_popup_bottom_bg_ef.png);
+ ADD_IMAGE_CONFIG(UPWARD_OVERLAY_BG_NORMAL, #00_slider_popup_bg.#.png);
+ ADD_IMAGE_CONFIG(UPWARD_OVERLAY_BG_EFFECT, #00_slider_popup_bg_ef.#.png);
START_UI_CONFIG_MODE(720x1280);
{