|
|
@@ -40,8 +40,7 @@ import org.xutils.common.util.LogUtil;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import static com.sheep.gamegroup.event.EventTypes.GUIDE_NEXT_GAME;
|
|
|
-import static com.sheep.gamegroup.event.EventTypes.GUIDE_NEXT_MALL;
|
|
|
+import static com.sheep.gamegroup.event.EventTypes.GUIDE_SWITCH_GAME;
|
|
|
|
|
|
public class NewbieGuideHelper {
|
|
|
|
|
|
@@ -51,8 +50,7 @@ public class NewbieGuideHelper {
|
|
|
public final static int GUIDE_GAME = 1;
|
|
|
public final static int GUIDE_USER = 2;
|
|
|
public final static int GUIDE_FAQ = 3;
|
|
|
- public final static int GUIDE_MALL = 4;
|
|
|
- public final static int GUIDE_MONEY = 5;
|
|
|
+ public final static int GUIDE_MONEY = 4;
|
|
|
|
|
|
private Activity mActivity;
|
|
|
private Animation enterAnimation;
|
|
|
@@ -74,15 +72,13 @@ public class NewbieGuideHelper {
|
|
|
public void show(int type) {
|
|
|
List<GuidePage> pages = null;
|
|
|
if (type == GUIDE_HOME) {
|
|
|
- pages = Arrays.asList(getPage1(), getPage2(), getPage3());
|
|
|
+ pages = Arrays.asList(getPage2(), getPage3());
|
|
|
} else if (type == GUIDE_USER) {
|
|
|
pages = Arrays.asList(getPage6());
|
|
|
} else if (type == GUIDE_MONEY) {
|
|
|
pages = Arrays.asList(getPage5());
|
|
|
} else if (type == GUIDE_FAQ) {
|
|
|
pages = Arrays.asList(getPage7());
|
|
|
- } else if (type == GUIDE_MALL) {
|
|
|
- pages = Arrays.asList(getPage4());
|
|
|
} else if (type == GUIDE_GAME) {
|
|
|
pages = Arrays.asList(getPage8(), getPage9(), getPage10());
|
|
|
} else {
|
|
|
@@ -108,10 +104,8 @@ public class NewbieGuideHelper {
|
|
|
} else if (type == GUIDE_FAQ) {
|
|
|
FgtPersonalCenter.scrollToTop(mActivity);
|
|
|
} else if (type == GUIDE_MONEY) {
|
|
|
- EventBus.getDefault().post(new BigEvent(GUIDE_NEXT_MALL));
|
|
|
+ EventBus.getDefault().post(new BigEvent(GUIDE_SWITCH_GAME));
|
|
|
mActivity.finish();
|
|
|
- } else if (type == GUIDE_MALL) {
|
|
|
- EventBus.getDefault().post(new BigEvent(GUIDE_NEXT_GAME));
|
|
|
} else if (type == GUIDE_GAME) {
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.FGT_SHEEP_SHOW_NEW_USER_HONG_BAO));
|
|
|
}
|
|
|
@@ -170,7 +164,7 @@ public class NewbieGuideHelper {
|
|
|
return GuidePage.newInstance()//创建一个实例
|
|
|
.addHighLightWithOptions(ActMain.tabBtn1.get(), HighLight.Shape.CIRCLE, new HighlightOptions.Builder().setRelativeGuide(relativeGuide3).useMaxSize(false).build())
|
|
|
.addHighLightWithOptions(FgtMainHeader.msgRef.get(), HighLight.Shape.CIRCLE, new HighlightOptions.Builder().setRelativeGuide(relativeGuide2).useMaxSize(true).build())
|
|
|
- .addHighLightWithOptions(FgtHome.newsRef.get(), HighLight.Shape.OVAL, new HighlightOptions.Builder().setRelativeGuide(relativeGuide1).useMaxSize(false).setOffsetLeft(0.2f).setOffsetWidth(0.6f).build())
|
|
|
+// .addHighLightWithOptions(FgtHome.newsRef.get(), HighLight.Shape.OVAL, new HighlightOptions.Builder().setRelativeGuide(relativeGuide1).useMaxSize(false).setOffsetLeft(0.2f).setOffsetWidth(0.6f).build())
|
|
|
.setEnterAnimation(enterAnimation)//进入动画
|
|
|
.setExitAnimation(exitAnimation);//退出动画;
|
|
|
}
|