Skip to content

Commit

Permalink
Change package data format to binary. Editor version 3.9.0 with 'bina…
Browse files Browse the repository at this point in the history
…ry format' option checked is required to generating this kind of format. Old XML format is not supported in this branch anymore.
  • Loading branch information
xiaoguzhu committed Sep 6, 2018
1 parent 18f407f commit 4612ff3
Show file tree
Hide file tree
Showing 173 changed files with 2,301 additions and 3,999 deletions.
2 changes: 2 additions & 0 deletions Examples/Classes/BagWindow.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "BagWindow.h"

USING_NS_CC;

void BagWindow::onInit()
{
setContentPane(UIPackage::createObject("Bag", "BagWin")->as<GComponent>());
Expand Down
4 changes: 1 addition & 3 deletions Examples/Classes/MailItem.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include "MailItem.h"

void MailItem::constructFromXML(TXMLElement *xml)
void MailItem::onConstruct()
{
GButton::constructFromXML(xml);

_timeText = getChild("timeText")->as<GTextField>();
_readController = getController("IsRead");
_fetchController = getController("c1");
Expand Down
2 changes: 1 addition & 1 deletion Examples/Classes/MailItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MailItem : public GButton
void playEffect(float delay);

protected:
virtual void constructFromXML(TXMLElement*);
virtual void onConstruct() override;

GTextField* _timeText;
GController* _readController;
Expand Down
6 changes: 2 additions & 4 deletions Examples/Classes/PullToRefreshScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ class ScrollPaneHeader : public GComponent
}
void setRefreshStatus(int value);
protected:
virtual void constructFromXML(TXMLElement*);
virtual void onConstruct();
private:
void onSizeChanged(EventContext*);

GController* _c1;
};

void ScrollPaneHeader::constructFromXML(TXMLElement* xml)
void ScrollPaneHeader::onConstruct()
{
GComponent::constructFromXML(xml);

_c1 = getController("c1");

addEventListener(UIEventType::SizeChange, CC_CALLBACK_1(ScrollPaneHeader::onSizeChanged, this));
Expand Down
2 changes: 2 additions & 0 deletions Examples/Classes/Window1.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "Window1.h"

USING_NS_CC;

void Window1::onInit()
{
setContentPane(UIPackage::createObject("Basics", "WindowA")->as<GComponent>());
Expand Down
2 changes: 2 additions & 0 deletions Examples/Classes/Window2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "Window2.h"

USING_NS_CC;

void Window2::onInit()
{
setContentPane(UIPackage::createObject("Basics", "WindowB")->as<GComponent>());
Expand Down
Binary file removed Examples/Resources/UI/Bag.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/Bag.fui
Binary file not shown.
21 changes: 0 additions & 21 deletions Examples/Resources/UI/[email protected]

This file was deleted.

File renamed without changes
Binary file removed Examples/Resources/UI/Basics.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/Basics.fui
Binary file not shown.
158 changes: 0 additions & 158 deletions Examples/Resources/UI/[email protected]

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Binary file added Examples/Resources/UI/Cooldown.fui
Binary file not shown.
Binary file added Examples/Resources/UI/Cooldown_atlas0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Examples/Resources/UI/Emoji.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/Emoji.fui
Binary file not shown.
105 changes: 0 additions & 105 deletions Examples/Resources/UI/[email protected]

This file was deleted.

File renamed without changes
Binary file removed Examples/Resources/UI/Extension.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/Extension.fui
Binary file not shown.
10 changes: 0 additions & 10 deletions Examples/Resources/UI/[email protected]

This file was deleted.

File renamed without changes
Binary file removed Examples/Resources/UI/Guide.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/Guide.fui
Binary file not shown.
27 changes: 0 additions & 27 deletions Examples/Resources/UI/[email protected]

This file was deleted.

File renamed without changes
Binary file removed Examples/Resources/UI/HitTest.bytes
Binary file not shown.
Binary file added Examples/Resources/UI/HitTest.fui
Binary file not shown.
Binary file removed Examples/Resources/UI/[email protected]
Binary file not shown.
Loading

0 comments on commit 4612ff3

Please sign in to comment.