Skip to content

Commit

Permalink
Merge pull request #6 from gatheringhallstudios/develop
Browse files Browse the repository at this point in the history
Merge v1.00
  • Loading branch information
JosephMichels authored Jul 14, 2016
2 parents 9999522 + 957958a commit ea9af63
Show file tree
Hide file tree
Showing 430 changed files with 4,539 additions and 7,098 deletions.
4 changes: 2 additions & 2 deletions android-section-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 7
versionName "1.0"
Expand All @@ -13,6 +13,6 @@ android {


dependencies {
compile 'com.android.support:support-v4:23.0.0'
compile 'com.android.support:support-v4:23.3.0'
}

Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public SectionCursorAdapter(Context context, Cursor c, int headerLayout,
* @param groupData
* @return
*/
protected String getCustomGroup(String groupData) {
return groupData;
protected String getCustomGroup(Cursor c) {
return c.getString(mGroupColumn);
}

private void calculateSectionHeaders() {
Expand All @@ -116,7 +116,7 @@ private void calculateSectionHeaders() {
c.moveToPosition(-1);

while (c.moveToNext()) {
final String group = getCustomGroup(c.getString(mGroupColumn));
final String group = getCustomGroup(c);

if (!previous.equals(group)) {
mSectionsIndexer.put(i + count, group);
Expand Down Expand Up @@ -159,28 +159,31 @@ public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
if (LOGV)
Log.v(TAG, "Creating new view for section");
convertView = newHeaderView(mContext,mCursor,parent);
}

holder = new ViewHolder();
convertView = mLayoutInflater.inflate(mHeaderRes, parent, false);
holder.textView = (TextView) convertView;
bindHeaderView(convertView,mContext,mCursor,position);

convertView.setTag(holder);
} else {
if (LOGV)
Log.v(TAG, "Reusing view for section");

holder = (ViewHolder) convertView.getTag();
}
return convertView;
}
}

TextView sectionText = holder.textView;
protected View newHeaderView(Context context, Cursor cursor, ViewGroup parent){
ViewHolder holder = new ViewHolder();
View v = mLayoutInflater.inflate(mHeaderRes, parent, false);
holder.textView = (TextView) v;
v.setTag(holder);
return v;
}

final String group = mSectionsIndexer.get(position);
final String customFormat = getGroupCustomFormat(group);
protected void bindHeaderView(View view, Context context, Cursor cursor,int position){
ViewHolder holder = (ViewHolder) view.getTag();
TextView sectionText = holder.textView;

sectionText.setText(customFormat == null ? group : customFormat);
final String group = mSectionsIndexer.get(position);
final String customFormat = getGroupCustomFormat(group);

return sectionText;
}
sectionText.setText(customFormat == null ? group : customFormat);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion android-sqlite-asset-helper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import com.android.builder.core.BuilderConstants
apply plugin: 'android-library'

android {
buildToolsVersion "23.0.0"
buildToolsVersion "23.0.2"
compileSdkVersion 23

defaultConfig {
Expand Down
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ android {
applicationId "com.ghstudios.android.mhgendatabase"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.00"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
Expand Down
16 changes: 12 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ghstudios.android.mhgendatabase"
android:versionCode="13"
android:versionName="1.08">
package="com.ghstudios.android.mhgendatabase">

<application
android:allowBackup="true"
Expand All @@ -16,10 +14,20 @@
android:label="@string/app_name"
android:screenOrientation="portrait" />

<activity android:name="com.ghstudios.android.ui.detail.MaterialDetailActivity"
android:label=""
android:screenOrientation="portrait"/>

<activity android:name="com.ghstudios.android.ui.list.PalicoActivity"
android:screenOrientation="portrait"/>

<activity android:name="com.ghstudios.android.ui.detail.PalicoWeaponDetailActivity"
android:screenOrientation="portrait"/>

<!-- MONSTER LIST SECTION -->
<activity
android:name="com.ghstudios.android.ui.list.MonsterListActivity"
android:label="@string/app_name"
android:label="@string/app_name_launcher"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Binary file removed app/src/main/assets/databases/mh4u.db.zip
Binary file not shown.
Binary file removed app/src/main/assets/databases/mhgen.db
Binary file not shown.
Binary file added app/src/main/assets/databases/mhgen.db.zip
Binary file not shown.
Binary file added app/src/main/assets/icons_items/Ammo-Gold.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 app/src/main/assets/icons_items/Bag-Blue.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Bag-Brown.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Bag-Green.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Bag-Orange.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Bag-White.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Bag-Yellow.png
Binary file not shown.
Binary file modified app/src/main/assets/icons_items/Egg-Cyan.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 modified app/src/main/assets/icons_items/Egg-Green.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 modified app/src/main/assets/icons_items/Egg-Grey.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 modified app/src/main/assets/icons_items/Egg-Orange.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 added app/src/main/assets/icons_items/Egg-Red.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 modified app/src/main/assets/icons_items/Egg-White.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 modified app/src/main/assets/icons_items/Egg-Yellow.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 app/src/main/assets/icons_items/Fishing-Spear.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Furnishing-Blue.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Furnishing-Green.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Furnishing-Red.png
Binary file not shown.
Binary file removed app/src/main/assets/icons_items/Furnishing-White.png
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/assets/icons_items/QuestionMark-Blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/assets/icons_items/Sac-Pink.png
Binary file added app/src/main/assets/icons_items/Seed-Gold.png
Binary file removed app/src/main/assets/icons_items/Specialty-Blue.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Brown.png
Diff not rendered.
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Green.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Grey.png
Diff not rendered.
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Pink.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Red.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Slime.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Teal.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-White.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Specialty-Yellow.png
Diff not rendered.
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Torch.png
Diff not rendered.
Binary file modified app/src/main/assets/icons_items/Traptool-Cyan.png
Binary file added app/src/main/assets/icons_items/Traptool-Gold.png
Binary file added app/src/main/assets/icons_items/Wood-Orange.png
Binary file added app/src/main/assets/icons_items/Wood-Yellow.png
Binary file removed app/src/main/assets/icons_items/Wystone-Cyan.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Wystone-Orange.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Wystone-Purple.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_items/Wystone-Red.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Agnaktor.png
Binary file added app/src/main/assets/icons_monster/Amatsu.png
Binary file added app/src/main/assets/icons_monster/Anteka.png
Binary file removed app/src/main/assets/icons_monster/Apex_Deviljho.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Diablos.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Gravios.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Rajang.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Seregios.png
Diff not rendered.
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Tigrex.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Apex_Zinogre.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Arzuros.png
Binary file added app/src/main/assets/icons_monster/Astalos.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Black_Diablos.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Black_Gravios.png
Diff not rendered.
Binary file modified app/src/main/assets/icons_monster/Blango.png
Binary file modified app/src/main/assets/icons_monster/Blangonga.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Brute_Tigrex.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Bullfango.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Dalamadur.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Delex.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Desert_Seltas.png
Diff not rendered.
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Duramboros.png
Binary file added app/src/main/assets/icons_monster/Gammoth.png
Binary file added app/src/main/assets/icons_monster/Glavenus.png
Binary file removed app/src/main/assets/icons_monster/Gravios.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Great_Jaggi.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Lagiacrus.png
Binary file added app/src/main/assets/icons_monster/Larinoth.png
Binary file added app/src/main/assets/icons_monster/Lavasioth.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Monoblos.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Mosswine.png
Binary file added app/src/main/assets/icons_monster/Nakarkos.png
Binary file removed app/src/main/assets/icons_monster/Nerscylla.png
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Nibelsnarf.png
Binary file removed app/src/main/assets/icons_monster/Oroshi_Kirin.png
Diff not rendered.
Binary file removed app/src/main/assets/icons_monster/Pink_Rathian.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified app/src/main/assets/icons_monster/Shogun_Ceanataur.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added app/src/main/assets/icons_monster/Uragaan.png
Binary file added app/src/main/assets/icons_monster/Uroktor.png
Binary file added app/src/main/assets/icons_monster/Vespoid.png
Binary file removed app/src/main/assets/icons_monster/White_Monoblos.png
Diff not rendered.
Binary file added app/src/main/assets/icons_weapons/blunt1.png
Binary file added app/src/main/assets/icons_weapons/blunt2.png
Binary file added app/src/main/assets/icons_weapons/blunt3.png
Binary file added app/src/main/assets/icons_weapons/blunt4.png
Binary file added app/src/main/assets/icons_weapons/blunt5.png
Binary file added app/src/main/assets/icons_weapons/blunt6.png
Binary file added app/src/main/assets/icons_weapons/blunt7.png
Binary file added app/src/main/assets/icons_weapons/blunt8.png
Binary file added app/src/main/assets/icons_weapons/cutting1.png
Binary file added app/src/main/assets/icons_weapons/cutting2.png
Binary file added app/src/main/assets/icons_weapons/cutting3.png
Binary file added app/src/main/assets/icons_weapons/cutting4.png
Binary file added app/src/main/assets/icons_weapons/cutting5.png
Binary file added app/src/main/assets/icons_weapons/cutting6.png
Binary file added app/src/main/assets/icons_weapons/cutting7.png
Binary file added app/src/main/assets/icons_weapons/cutting8.png
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public class Gathering {
private String site; // Type of gathering node; bug, mine, fish, etc.
private String rank; // Quest Rank found in
private float rate; // Gather rate

int group; //What group is it a part of, (Unique within an area)
boolean fixed; //is this a fixed gathering point
boolean rare; //Is it a rare point

int quantity;

/* Default Constructor */
public Gathering() {
Expand All @@ -22,6 +28,10 @@ public Gathering() {
this.site = "";
this.rank = "";
this.rate = 0;
this.group = 0;
this.fixed = true;
this.rare = false;
this.quantity = 1;
}

/* Getters and Setters */
Expand Down Expand Up @@ -80,5 +90,13 @@ public float getRate() {
public void setRate(float rate) {
this.rate = rate;
}


public void setGroup(int group){this.group = group;}
public int getGroup(){return this.group;}
public void setFixed(boolean fixed){this.fixed = fixed;}
public boolean isFixed(){return this.fixed;}
public void setRare(boolean rare){this.rare = rare;}
public boolean isRare(){return this.rare;}
public void setQuantity(int quantity){this.quantity=quantity;}
public int getQuantity(){return this.quantity;}
}
69 changes: 69 additions & 0 deletions app/src/main/java/com/ghstudios/android/data/classes/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,75 @@ public void setFileLocation(String file_location) {
this.file_location = file_location;
}

public String getItemImage(){
String cellImage;
switch(this.getSubType()){
case "Head":
cellImage = "icons_armor/icons_head/head" + this.getRarity() + ".png";
break;
case "Body":
cellImage = "icons_armor/icons_body/body" + this.getRarity() + ".png";
break;
case "Arms":
cellImage = "icons_armor/icons_arms/arms" + this.getRarity() + ".png";
break;
case "Waist":
cellImage = "icons_armor/icons_waist/waist" + this.getRarity() + ".png";
break;
case "Legs":
cellImage = "icons_armor/icons_legs/legs" + this.getRarity() + ".png";
break;
case "Great Sword":
cellImage = "icons_weapons/icons_great_sword/great_sword" + this.getRarity() + ".png";
break;
case "Long Sword":
cellImage = "icons_weapons/icons_long_sword/long_sword" + this.getRarity() + ".png";
break;
case "Sword and Shield":
cellImage = "icons_weapons/icons_sword_and_shield/sword_and_shield" + this.getRarity() + ".png";
break;
case "Dual Blades":
cellImage = "icons_weapons/icons_dual_blades/dual_blades" + this.getRarity() + ".png";
break;
case "Hammer":
cellImage = "icons_weapons/icons_hammer/hammer" + this.getRarity() + ".png";
break;
case "Hunting Horn":
cellImage = "icons_weapons/icons_hunting_horn/hunting_horn" + this.getRarity() + ".png";
break;
case "Lance":
cellImage = "icons_weapons/icons_lance/lance" + this.getRarity() + ".png";
break;
case "Gunlance":
cellImage = "icons_weapons/icons_gunlance/gunlance" + this.getRarity() + ".png";
break;
case "Switch Axe":
cellImage = "icons_weapons/icons_switch_axe/switch_axe" + this.getRarity() + ".png";
break;
case "Charge Blade":
cellImage = "icons_weapons/icons_charge_blade/charge_blade" + this.getRarity() + ".png";
break;
case "Insect Glaive":
cellImage = "icons_weapons/icons_insect_glaive/insect_glaive" + this.getRarity() + ".png";
break;
case "Light Bowgun":
cellImage = "icons_weapons/icons_light_bowgun/light_bowgun" + this.getRarity() + ".png";
break;
case "Heavy Bowgun":
cellImage = "icons_weapons/icons_heavy_bowgun/heavy_bowgun" + this.getRarity() + ".png";
break;
case "Bow":
cellImage = "icons_weapons/icons_bow/bow" + this.getRarity() + ".png";
break;
default: {
if(this.type.equals("Palico Weapon"))
cellImage = "icons_weapons/"+this.getFileLocation();
else
cellImage = "icons_items/" + this.getFileLocation();
}
}
return cellImage;
}

public String getArmorDupeNameFix() {
return armor_dupe_name_fix;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.ghstudios.android.data.classes;

/**
* Created by Joseph on 7/7/2016.
*/
public class ItemToMaterial {
private int amount;
private Item item;

public int getAmount() {
return amount;
}

public void setAmount(int amount) {
this.amount = amount;
}

public Item getItem() {
return item;
}

public void setItem(Item item) {
this.item = item;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void setFileLocation(String file_location) {
}

public String getFileLocationMini() {
return file_location_mini;
return file_location;
}

public void setFileLocationMini(String file_location_mini) {
Expand Down
Loading

0 comments on commit ea9af63

Please sign in to comment.