small attempt to reduce spam tags
This commit is contained in:
parent
19e182ae42
commit
d4ff778434
@ -122,7 +122,7 @@ void LocalSaveActivity::saveWrite(std::string finalFilename)
|
|||||||
void LocalSaveActivity::OnDraw()
|
void LocalSaveActivity::OnDraw()
|
||||||
{
|
{
|
||||||
Graphics * g = ui::Engine::Ref().g;
|
Graphics * g = ui::Engine::Ref().g;
|
||||||
g->draw_rgba_image((unsigned char*)save_to_disk_image, -10, 0, 0.7f);
|
g->draw_rgba_image((unsigned char*)save_to_disk_image, 0, 0, 0.7f);
|
||||||
g->clearrect(Position.X-2, Position.Y-2, Size.X+3, Size.Y+3);
|
g->clearrect(Position.X-2, Position.Y-2, Size.X+3, Size.Y+3);
|
||||||
g->drawrect(Position.X, Position.Y, Size.X, Size.Y, 255, 255, 255, 255);
|
g->drawrect(Position.X, Position.Y, Size.X, Size.Y, 255, 255, 255, 255);
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ TagsView::TagsView():
|
|||||||
closeButton->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
closeButton->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
||||||
closeButton->SetActionCallback(new CloseAction(this));
|
closeButton->SetActionCallback(new CloseAction(this));
|
||||||
AddComponent(closeButton);
|
AddComponent(closeButton);
|
||||||
|
SetCancelButton(closeButton);
|
||||||
|
|
||||||
|
|
||||||
tagInput = new ui::Textbox(ui::Point(8, Size.Y-40), ui::Point(Size.X-60, 16), "", "[new tag]");
|
tagInput = new ui::Textbox(ui::Point(8, Size.Y-40), ui::Point(Size.X-60, 16), "", "[new tag]");
|
||||||
@ -55,7 +56,7 @@ TagsView::TagsView():
|
|||||||
addButton->SetActionCallback(new AddTagAction(this));
|
addButton->SetActionCallback(new AddTagAction(this));
|
||||||
AddComponent(addButton);
|
AddComponent(addButton);
|
||||||
|
|
||||||
title = new ui::Label(ui::Point(5, 5), ui::Point(185, 16), "Manage tags:");
|
title = new ui::Label(ui::Point(5, 5), ui::Point(185, 16), "Manage tags: \bgTags are only to \nbe used to improve search results");
|
||||||
title->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
|
title->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
|
||||||
title->Appearance.VerticalAlign = ui::Appearance::AlignTop;
|
title->Appearance.VerticalAlign = ui::Appearance::AlignTop;
|
||||||
AddComponent(title);
|
AddComponent(title);
|
||||||
|
@ -24,7 +24,7 @@ class TagsView: public ui::Window {
|
|||||||
public:
|
public:
|
||||||
TagsView();
|
TagsView();
|
||||||
virtual void OnDraw();
|
virtual void OnDraw();
|
||||||
void AttachController(TagsController * c_) { c = c_; };
|
void AttachController(TagsController * c_) { c = c_; }
|
||||||
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
||||||
void NotifyTagsChanged(TagsModel * sender);
|
void NotifyTagsChanged(TagsModel * sender);
|
||||||
virtual ~TagsView();
|
virtual ~TagsView();
|
||||||
|
Reference in New Issue
Block a user