Commit 69a45483 authored by fallenstardust's avatar fallenstardust

聊天消息发送&优化布局

parent 7eb249aa
...@@ -115,8 +115,6 @@ void DeckBuilder::Terminate() { ...@@ -115,8 +115,6 @@ void DeckBuilder::Terminate() {
mainGame->device->closeDevice(); mainGame->device->closeDevice();
} }
bool DeckBuilder::OnEvent(const irr::SEvent& event) { bool DeckBuilder::OnEvent(const irr::SEvent& event) {
if(mainGame->dField.OnCommonEvent(event))
return false;
#ifdef _IRR_ANDROID_PLATFORM_ #ifdef _IRR_ANDROID_PLATFORM_
irr::SEvent transferEvent; irr::SEvent transferEvent;
if (irr::android::TouchEventTransferAndroid::OnTransferDeckEdit(event)) { if (irr::android::TouchEventTransferAndroid::OnTransferDeckEdit(event)) {
......
...@@ -222,6 +222,9 @@ public: ...@@ -222,6 +222,9 @@ public:
irr::gui::IGUIStaticText* stSetName; irr::gui::IGUIStaticText* stSetName;
irr::gui::IGUIStaticText* stText; irr::gui::IGUIStaticText* stText;
irr::gui::IGUIScrollBar* scrCardText; irr::gui::IGUIScrollBar* scrCardText;
irr::gui::IGUIListBox* lstLog;
irr::gui::IGUIButton* btnClearLog;
irr::gui::IGUIButton* btnSaveLog;
irr::gui::IGUICheckBox* chkMAutoPos; irr::gui::IGUICheckBox* chkMAutoPos;
irr::gui::IGUICheckBox* chkSTAutoPos; irr::gui::IGUICheckBox* chkSTAutoPos;
irr::gui::IGUICheckBox* chkRandomPos; irr::gui::IGUICheckBox* chkRandomPos;
...@@ -231,9 +234,6 @@ public: ...@@ -231,9 +234,6 @@ public:
irr::gui::IGUICheckBox* chkHideHintButton; irr::gui::IGUICheckBox* chkHideHintButton;
irr::gui::IGUICheckBox* chkIgnoreDeckChanges; irr::gui::IGUICheckBox* chkIgnoreDeckChanges;
irr::gui::IGUICheckBox* chkAutoSearch; irr::gui::IGUICheckBox* chkAutoSearch;
irr::gui::IGUIListBox* lstLog;
irr::gui::IGUIButton* btnClearLog;
irr::gui::IGUIButton* btnSaveLog;
//main menu //main menu
irr::gui::IGUIWindow* wMainMenu; irr::gui::IGUIWindow* wMainMenu;
irr::gui::IGUIButton* btnLanMode; irr::gui::IGUIButton* btnLanMode;
......
...@@ -31,6 +31,8 @@ void UpdateDeck() { ...@@ -31,6 +31,8 @@ void UpdateDeck() {
DuelClient::SendBufferToServer(CTOS_UPDATE_DECK, deckbuf, pdeck - deckbuf); DuelClient::SendBufferToServer(CTOS_UPDATE_DECK, deckbuf, pdeck - deckbuf);
} }
bool MenuHandler::OnEvent(const irr::SEvent& event) { bool MenuHandler::OnEvent(const irr::SEvent& event) {
if(mainGame->dField.OnCommonEvent(event))
return false;
#ifdef _IRR_ANDROID_PLATFORM_ #ifdef _IRR_ANDROID_PLATFORM_
irr::SEvent transferEvent; irr::SEvent transferEvent;
if (irr::android::TouchEventTransferAndroid::OnTransferCommon(event, false)) { if (irr::android::TouchEventTransferAndroid::OnTransferCommon(event, false)) {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
更新: 更新:
1.更新ygo内核; 1.更新ygo内核;
2.避免误导用户移除版本号修改功能★ 2.避免误导用户移除版本号修改功能★
3.新卡:TCG1004+WJ+VJ;
修复: 修复:
1.一些已知的卡图错误; 1.一些已知的卡图错误;
2.下拉列表滚动容易弹回顶部的问题; 2.下拉列表滚动容易弹回顶部的问题;
......
...@@ -23,26 +23,25 @@ ...@@ -23,26 +23,25 @@
android:layout_height="match_parent"/> android:layout_height="match_parent"/>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|left" android:layout_gravity="bottom|"
android:layout_marginBottom="2dp" android:layout_marginBottom="2dp"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1"> android:weightSum="1">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/deck_name" android:text="@string/deck_name"
android:textColor="@color/holo_blue_light" /> android:textColor="@color/holo_blue_light" />
<android.support.v7.widget.AppCompatSpinner <android.support.v7.widget.AppCompatSpinner
android:id="@+id/toolbar_list" android:id="@+id/toolbar_list"
android:layout_width="150dp" android:layout_width="0dp"
android:layout_height="@dimen/item_height" android:layout_height="@dimen/item_height"
app:popupTheme="@style/AppTheme.PopupOverlay.Bule" android:layout_weight="1" />
android:layout_weight="3.56" />
<ImageView <ImageView
android:id="@+id/btn_nav_list" android:id="@+id/btn_nav_list"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment